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

Adapt to new modular structure #3

Open
f-hafner opened this issue Jun 18, 2022 · 0 comments
Open

Adapt to new modular structure #3

f-hafner opened this issue Jun 18, 2022 · 0 comments

Comments

@f-hafner
Copy link
Owner

pipeline.sh will not work as-is because calling a python script in a sub-directory, but loading a module that is not in that subdirectory will fail.
To fix: execute the scripts as modules, like this:

  1. add a file __init__.py to all directories where there is a python script
  2. in the pipeline, adjust the code for calling scripts from "python3 /some/path/script.py" to "python3 -m some.path.script"

See also https://peps.python.org/pep-0338/

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

No branches or pull requests

1 participant