Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve ModuleNotFound problem #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kremnik
Copy link

@kremnik kremnik commented Sep 22, 2020

On Windows systems it is a problem with not founded modules. Theese two lines resolve ModuleNotFound exception.

@@ -1,6 +1,8 @@
import argparse
import glob
import os
import sys
sys.path.append('.')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say that if you want to do something platform-dependent than it is better to check the os.name variable

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not only Windows, it could remove PYTHONPATH=$(pwd):${PYTHONPATH} from start script on Linux platform. But of course the run style is up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants