Skip to content

Allow loading Python APMs installed as packages (directories)#58

Open
kivkiv12345 wants to merge 1 commit intomasterfrom
load_py_packages
Open

Allow loading Python APMs installed as packages (directories)#58
kivkiv12345 wants to merge 1 commit intomasterfrom
load_py_packages

Conversation

@kivkiv12345
Copy link
Copy Markdown
Contributor

This PR bypasses the check for a .py suffix if the dirent is a directory. Allowing us to load Python APMs which are directories with an __init__.py.
I suspect the .py suffix check was added to avoid load_py() printing errors for normal .so APMs.
My preferred solution would be to only print errors for APM candidates that can neither be loaded as a normal nor Python APM.
But this solution works fine for the foreseeable future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant