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

Fix the CLI --pythonpath parameter #12874

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rtibbles
Copy link
Member

Summary

  • Make setting django settings and pythonpath idempotent and reusable.
  • Ensure we validate pythonpath option before settings option.
  • Set python path for all CLI commands so that it can be used for plugins too.
  • Cleans up deprecated methods

References

Fixes #10296

Reviewer guidance

Create a dummy plugin or settings file in a completely different folder. Pass the (can be relative) path to that folder using the the --pythonpath CLI option when invoking kolibri shell kolibri plugin enable or the like, and ensure that the settings file or plugin can take effect.

@github-actions github-actions bot added the DEV: backend Python, databases, networking, filesystem... label Nov 21, 2024
Ensure we validate pythonpath option before settings option.
Set python path for all CLI commands so that it can be used for plugins too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV: backend Python, databases, networking, filesystem...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The --pythonpath CLI option currently does nothing!
1 participant