1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

Include source directory, when running from source

This commit is contained in:
Dummerle 2022-09-05 20:18:40 +02:00
parent d67fb8130b
commit 0d43f1103d
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -1,4 +1,6 @@
import os
import pathlib
import sys
from argparse import ArgumentParser
@ -111,7 +113,8 @@ if __name__ == "__main__":
# 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[1].absolute()))
sys.path.insert(0, str(pathlib.Path(__file__).parents[1].absolute()))
main()