1
0
Fork 0
mirror of synced 2024-06-09 14:14:41 +12:00

Fix run from source

This commit is contained in:
Dummerle 2021-12-13 22:05:05 +01:00
parent b9253d0971
commit df885bafa6
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

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