-
-
Notifications
You must be signed in to change notification settings - Fork 151
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 cwd to sys.path #1114
Comments
It is not about Kopf, it is about running a generic Python app and is (or is not) an issue of Python. Afair, this was the default behavor for years, but they reverted this behaviour — presumably, for security reasons. It is not up to a specialised niche framework to override that general approach of Python. The app developers can do this if they want, as they control the whole environment. Also, if kopf is installed as a package normally, it will run without any path manipulation — because it (i.e. pip/poetry/whatnot) installs a bin script named |
when running kopf with |
i didn't know that behavior has changed, and I agree that it shouldn't be overridden in the framework - but maybe we can add that as a cli flag |
CLI already allows this, basically in any shell:
Not specific to Kopf, this is a Python feature: |
Problem
I want to run kopf without the need to define cwd/pwd in PYTHONPATH.
I'm not sure why it's not there, might be related to venv.
Proposal
just make in automatic.
Code
The text was updated successfully, but these errors were encountered: