Correct way to handle imports? #21
Replies: 2 comments 2 replies
-
|
Asking the same questions in a different way: |
Beta Was this translation helpful? Give feedback.
-
|
Hello, import os Best regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m embarrassed that I should know the answer to this, but realise that I don’t!
If I have a folder structure
Folder A
|
Module a
|
Module b
What is the Correct way to import Module a from Module b. ?
To be clear, Folder B and Folder C are both subfolders under Folder A
I am finding the sys.path.append() method very flaky if I try to move Folder A from Pythonista/Documents to Working_Copy/Documents or Files/Documents.
It seems that every time I come back to my code after a while, the imports are broken.
Help please?
Beta Was this translation helpful? Give feedback.
All reactions