Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
import path in subdirectories from interactive propmt
-
I am trying import a module in a subdirectory using the interactive prompt. Module is not found because it seems Pythonista does not set correctly the path to the current subdirectory.
-
The interactive prompt interpreter is entirely independent from the script editor, so the current directory will always be the documents root, unless you change it with <code>os.chdir()</code>.
-
I use:
sys.path.append('.') and it works.Thanks