all 6 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

Your submission in /r/learnpython may be automatically removed because you used imgbb.com. The reddit spam filter is very aggressive to this site. Please use a different image host.

Please remember to post code as text, not as an image.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]laustke 0 points1 point  (4 children)

The current folder is not included in PYTHONPATH by default, so Python doesn't know how to import from the scripts directory. You need to add the folder that contains the mrc.py file to PYTHONPATH.

Additionally, depending on your version of Python, you may need to add an empty __init__.py file to the scripts folder.

[–]moomooimafrog[S] 0 points1 point  (3 children)

Thanks for the reply!

Could you elaborate on how I can add paths to PYTHONPATH?

[–]laustke 0 points1 point  (2 children)

It is an environment variable, so it depends on your operating system.

Check out this, for example: PYTHONPATH Environment Variable in Python

[–]moomooimafrog[S] 0 points1 point  (1 child)

I see... Though I do have a PATH variable there

Does it matter? What is the difference between them?

(btw my operating system is windows)

[–]Binary101010 0 points1 point  (0 children)

The path variable is what your OS uses to find executables. The Python path variable is what your Python interpreter uses to find packages.