Skip to content

Commit

Permalink
tried to import module in subfolder, but not successful
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoeinsidler committed Nov 7, 2019
1 parent e55a55b commit a1eb6b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pigor/library/render.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sys
import pathlib

PATH_TO_PLUGINS = pathlib.Path('../plugins').resolve().absolute()
print(PATH_TO_PLUGINS)
if str(PATH_TO_PLUGINS) not in sys.path:
sys.path.insert(0, str(PATH_TO_PLUGINS))
# sys.path.append(os.path.abspath(os.path.join('..', 'plugins')))
print(sys.path)

from plugins.polarimeter.functions import *

0 comments on commit a1eb6b1

Please sign in to comment.