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

Improve PYTHONPATH management per project #32

Open
albilu opened this issue May 2, 2023 · 0 comments
Open

Improve PYTHONPATH management per project #32

albilu opened this issue May 2, 2023 · 0 comments
Labels
enhancement New feature or request pri-low

Comments

@albilu
Copy link
Owner

albilu commented May 2, 2023

After standard project generation, I added the func1 function to the main.py file.
I then generated a standard test unit file. After these operations, the unit tests worked.
Next, I wanted to test the func1 function. I added the following code:
from main import func1
Unfortunately, this operation fails because the PYTHONPATH environment variable
contains the /.../Project/tests directory but not the /.../Project/ directory.
I solved this problem by adding the appropriate PYTHONPATH variable in the global
configuration NetBeans/Options/Python/Environment Variables but this is not
a good solution.

Can this be set somewhere just for a specific project? Maybe in the
nbproject/project.properties file?

Originally posted by @DKnoto in #31

@albilu albilu added enhancement New feature or request pri-low labels May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pri-low
Projects
None yet
Development

No branches or pull requests

1 participant