-
Notifications
You must be signed in to change notification settings - Fork 147
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
Cannot Import Custom Module #514
Comments
When embedding python the current working directory is not automatically added to the path. You can add the cwd to the path by adding "." to JepConfig.addIncludePath, or the PYTHONPATH env var or adding it to sys.path in the Interpreter. |
Worked. Many thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
Hello,
Is there a special method for importing custom modules (i.e. Python files in the same directory) vs. ordinary, installed modules? I get "NoModuleFoundError" despite haveing the Python file in the same directory and making sure that both Java and Python are in the right "current directory".
Many thanks
Best
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: