Skip to content

Commit e45eaa3

Browse files
committed
docs
1 parent d450fd6 commit e45eaa3

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
build:
3-
os: "ubuntu-20.04"
3+
os: "ubuntu-22.04"
44
tools:
55
python: "3.12"
66
python:

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66

77
# -- Path setup --------------------------------------------------------------
88

9+
import logging
10+
911
# If extensions (or modules to document with autodoc) are in another directory,
1012
# add these directories to sys.path here. If the directory is relative to the
1113
# documentation root, use os.path.abspath to make it absolute, like shown here.
1214
#
1315
import os
1416
import sys
1517

16-
sys.path.insert(0, os.path.abspath("../../src"))
18+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../src")))
1719

20+
print(sys.path)
21+
logging.warning(sys.path)
1822

1923
# -- Project information -----------------------------------------------------
2024

@@ -68,3 +72,5 @@
6872
autodoc_default_options = {
6973
"member-order": "bysource",
7074
}
75+
if __name__ == "__main__":
76+
pass

src/zvt/__init__.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,19 @@ def old_db_to_provider_dir(data_path):
232232

233233
# register to meta
234234
import zvt.contract as zvt_contract
235-
import zvt.recorders as zvt_recorders
236-
import zvt.factors as zvt_factors
237235

238-
import platform
236+
# import zvt.recorders as zvt_recorders
237+
import zvt.factors as zvt_factors
239238

240-
if platform.system() == "Windows":
241-
try:
242-
import zvt.recorders.qmt as qmt_recorder
243-
except Exception as e:
244-
logger.error("QMT not work", e)
245-
else:
246-
logger.warning("QMT need run in Windows!")
239+
# import platform
240+
#
241+
# if platform.system() == "Windows":
242+
# try:
243+
# import zvt.recorders.qmt as qmt_recorder
244+
# except Exception as e:
245+
# logger.error("QMT not work", e)
246+
# else:
247+
# logger.warning("QMT need run in Windows!")
247248

248249

249250
__all__ = ["zvt_env", "zvt_config", "init_log", "init_env", "init_config", "__version__"]

0 commit comments

Comments
 (0)