Skip to content

Custom imports fixes for #41, revisiting #12#44

Merged
marcmengel merged 2 commits intomainfrom
custom_imports
Oct 22, 2024
Merged

Custom imports fixes for #41, revisiting #12#44
marcmengel merged 2 commits intomainfrom
custom_imports

Conversation

@marcmengel
Copy link
Copy Markdown
Collaborator

Turns out, "import custom" will not throw if there is a "custom" directory in the PYTHONPATH, even if the init.py is missing; but you can check that custom.file is set to something and that raises if its there but a directory.

similarly, we check for the import of template_tags in the startup when we run so we can log and stub in a
substitute. Still not sure why that didn't work at the outer scope, but it seems to work here...

@marcmengel marcmengel linked an issue Oct 22, 2024 that may be closed by this pull request
@marcmengel marcmengel merged commit 5d88924 into main Oct 22, 2024
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 this pull request may close these issues.

sclient should be initialized to None

1 participant