Skip to content

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.

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