Skip to content

Commit

Permalink
Update paths.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Sep 18, 2022
1 parent b828075 commit 6c34579
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions wotlkdoc/docs/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
Doc related file / folder paths
"""

from pathlib_mate import Path
import os
for k, v in os.environ.items():
print(k, v)
print(os.getcwd())
print(os.listdir(os.getcwd()))
dir_project_root = Path.dir_here(__file__).parent.parent
from pathlib_mate import Path


if "READTHEDOCS" in os:
dir_project_root = Path.cwd().parent.parent
else:
dir_project_root = Path.dir_here(__file__).parent.parent

print("*******")
print(dir_project_root)
print(os.listdir(str(dir_project_root)))
assert (dir_project_root / "setup.py").exists()

dir_docs = dir_project_root / "docs"
Expand Down

0 comments on commit 6c34579

Please sign in to comment.