1
0
Fork 0
mirror of synced 2024-05-19 20:12:49 +12:00

Fix wrong paths for sys.path

This commit is contained in:
Dummerle 2021-12-10 19:56:44 +01:00
parent c425775f28
commit 454b8ed80f
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -78,8 +78,8 @@ def main():
if __name__ == '__main__':
# run from source
# insert raw legendary submodule
sys.path.insert(0, os.path.join(pathlib.Path(__file__).parents[2].absolute(), "legendary"))
sys.path.insert(0, os.path.join(pathlib.Path(__file__).parent.absolute(), "legendary"))
# insert source directory
sys.path.insert(0, str(pathlib.Path(__file__).parent.parent.absolute()))
sys.path.insert(0, str(pathlib.Path(__file__).parents[2].absolute()))
main()