Import error in subfolder
When I import a module from a file in the source root it works, but when I import from a subfolder(scripts) typescript complains. How can I connect the subfolder's files to be able to import node modules?
There's no need to mess with your PYTHONPATH or sys.path here.
To properly use absolute imports in a package you should include the "root" packagename as well, e.g.:
from dirFoo.dirFoo1.foo1 import Foo1
from dirFoo.dirFoo2.foo2 import Foo2
Or you can use relative imports:
from .dirfoo1.foo1 import Foo1
from .dirfoo2.foo2 import Foo2