diff options
Diffstat (limited to 'measureit/__init__.py')
-rw-r--r-- | measureit/__init__.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/measureit/__init__.py b/measureit/__init__.py index 3401a6a6..8e7841fb 100644 --- a/measureit/__init__.py +++ b/measureit/__init__.py @@ -40,18 +40,6 @@ import sys import os # ---------------------------------------------- -# Add to Phyton path (once only) -# ---------------------------------------------- -path = sys.path -flag = False -for item in path: - if "measureit" in item: - flag = True -if flag is False: - sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'measureit')) - print("measureit: added to phytonpath") - -# ---------------------------------------------- # Import modules # ---------------------------------------------- if "bpy" in locals(): @@ -60,7 +48,7 @@ if "bpy" in locals(): imp.reload(measureit_main) print("measureit: Reloaded multifiles") else: - import measureit_main + from . import measureit_main print("measureit: Imported multifiles") |