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

Add prd (python generated directory) to PYTHONPATH #7

Closed
ghost opened this issue Nov 20, 2023 · 1 comment · Fixed by #12
Closed

Add prd (python generated directory) to PYTHONPATH #7

ghost opened this issue Nov 20, 2023 · 1 comment · Fixed by #12

Comments

@ghost
Copy link

ghost commented Nov 20, 2023

  "containerEnv": {
    "PYTHONPATH": "/workspaces/STIR2PETSIRD/PETSIRD/python"
  }

The aboce. should be added to the .devcontainer/devcontainer.json file.

Example implementation and use case.
https://github.com/ETSIhackers/STIR2PETSIRD/blob/52d21ad78533a2905766f16219ab4ad3caac2da4/.devcontainer/devcontainer.json#L126-L128

@KrisThielemans
Copy link
Contributor

Problem is it needs the project-name. I think one of the .bashrc methods could be easier to, although even there people will have to rename presumably. (don't want to do an ugly find ~ -d -name PETSIRD).

I've created microsoft/yardl#108 which is probably the way forward.

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 a pull request may close this issue.

1 participant