QuLab 2.11.11__py3-none-any.whl → 2.11.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qulab/cli/config.py +7 -3
- qulab/version.py +1 -1
- {qulab-2.11.11.dist-info → qulab-2.11.13.dist-info}/METADATA +1 -1
- {qulab-2.11.11.dist-info → qulab-2.11.13.dist-info}/RECORD +8 -8
- {qulab-2.11.11.dist-info → qulab-2.11.13.dist-info}/WHEEL +0 -0
- {qulab-2.11.11.dist-info → qulab-2.11.13.dist-info}/entry_points.txt +0 -0
- {qulab-2.11.11.dist-info → qulab-2.11.13.dist-info}/licenses/LICENSE +0 -0
- {qulab-2.11.11.dist-info → qulab-2.11.13.dist-info}/top_level.txt +0 -0
qulab/cli/config.py
CHANGED
@@ -7,7 +7,7 @@ from pathlib import Path
|
|
7
7
|
import click
|
8
8
|
from loguru import logger
|
9
9
|
|
10
|
-
|
10
|
+
DEFAULT_CONFIG_PATH = Path(os.path.expanduser("~/.qulab.ini"))
|
11
11
|
ENV_PREFIX = "QULAB_"
|
12
12
|
|
13
13
|
|
@@ -36,8 +36,12 @@ def _get_config_value(option_name,
|
|
36
36
|
config = configparser.ConfigParser()
|
37
37
|
# 先加载默认配置防止段不存在
|
38
38
|
config.read_dict({config_section: {}})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
config_path = Path.cwd() / "qulab.ini"
|
41
|
+
if config_path.exists():
|
42
|
+
config.read(config_path)
|
43
|
+
elif DEFAULT_CONFIG_PATH.exists():
|
44
|
+
config.read(DEFAULT_CONFIG_PATH)
|
41
45
|
|
42
46
|
# 从对应配置段读取
|
43
47
|
if config.has_section(config_section):
|
qulab/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.11.
|
1
|
+
__version__ = "2.11.13"
|
@@ -2,10 +2,10 @@ qulab/__init__.py,sha256=hmf6R3jiM5NtJY1mSptogYnH5DMTR2dTzlXykqLxQzg,2027
|
|
2
2
|
qulab/__main__.py,sha256=fjaRSL_uUjNIzBGNgjlGswb9TJ2VD5qnkZHW3hItrD4,68
|
3
3
|
qulab/typing.py,sha256=vg62sGqxuD9CI5677ejlzAmf2fVdAESZCQjAE_xSxPg,69
|
4
4
|
qulab/utils.py,sha256=B_8QdY9OMY7WU-F200v93BDJXJpQcKAHihnOXeEvv_w,3966
|
5
|
-
qulab/version.py,sha256=
|
5
|
+
qulab/version.py,sha256=zzz5acK8diCvnDna0wJqi0GGAyMkaKL0pR-gfoeXbEc,23
|
6
6
|
qulab/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
qulab/cli/commands.py,sha256=ywKmwbGNBCVASx8OsgrRttaLz9ogwY38ZdKj7I-tdJ4,813
|
8
|
-
qulab/cli/config.py,sha256=
|
8
|
+
qulab/cli/config.py,sha256=RIQlCTViDOg_QA0J7Y0jNJ8TEXG7ATmGwbK2Ief0NPY,5591
|
9
9
|
qulab/cli/decorators.py,sha256=oImteZVnDPPWdyhJ4kzf2KYGJLON7VsKGBvZadWLQZo,621
|
10
10
|
qulab/executor/__init__.py,sha256=LosPzOMaljSZY1thy_Fxtbrgq7uubJszMABEB7oM7tU,101
|
11
11
|
qulab/executor/analyze.py,sha256=VYTfiOYJe5gDbtGA4wOkrQhhu55iIrRVByx-gBLUUm4,5672
|
@@ -96,9 +96,9 @@ qulab/visualization/plot_seq.py,sha256=UWTS6p9nfX_7B8ehcYo6UnSTUCjkBsNU9jiOeW2ca
|
|
96
96
|
qulab/visualization/qdat.py,sha256=ZeevBYWkzbww4xZnsjHhw7wRorJCBzbG0iEu-XQB4EA,5735
|
97
97
|
qulab/visualization/rot3d.py,sha256=CuLfG1jw1032HNNZxzC0OWtNzKsbj2e2WRYhMWDgvMQ,1321
|
98
98
|
qulab/visualization/widgets.py,sha256=6KkiTyQ8J-ei70LbPQZAK35wjktY47w2IveOa682ftA,3180
|
99
|
-
qulab-2.11.
|
100
|
-
qulab-2.11.
|
101
|
-
qulab-2.11.
|
102
|
-
qulab-2.11.
|
103
|
-
qulab-2.11.
|
104
|
-
qulab-2.11.
|
99
|
+
qulab-2.11.13.dist-info/licenses/LICENSE,sha256=PRzIKxZtpQcH7whTG6Egvzl1A0BvnSf30tmR2X2KrpA,1065
|
100
|
+
qulab-2.11.13.dist-info/METADATA,sha256=Bo0lvlENxUP4QCQsnn0VzTpNuJAagUPHwP3DZXWiif4,3945
|
101
|
+
qulab-2.11.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
102
|
+
qulab-2.11.13.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
|
103
|
+
qulab-2.11.13.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
|
104
|
+
qulab-2.11.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|