From 454b8ed80f34fb416177185fe13c537bf66b0269 Mon Sep 17 00:00:00 2001 From: Dummerle <44114474+Dummerle@users.noreply.github.com> Date: Fri, 10 Dec 2021 19:56:44 +0100 Subject: [PATCH] Fix wrong paths for sys.path --- rare/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rare/__main__.py b/rare/__main__.py index 59b2e24f..7d225ef0 100644 --- a/rare/__main__.py +++ b/rare/__main__.py @@ -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()