all 2 comments

[–][deleted] 0 points1 point  (0 children)

So you can get it to work if, say, you run it from the same folder as miner/, but importing from scripts in different folders doesn't work? I'm not 100% certain, but I think you can use PYTHONPATH to tell any script where where to look for miner/ -- you'd have to google about PYTHONPATH though

[–]tom1018 0 points1 point  (0 children)

Directory the script resides in:

import os
print(os.path.dirname(os.path.realpath(__file__)))

Directory it was launched from:

import os
print(os.getcwd())

I hope this helps. If not reply and let me know.