-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
More flexibility when importing python modules #3
Comments
I can confirm the issue with importing packages, i.e.
|
This has now been fixed with commit 28d5e92. In PyOtherSide 1.0 and 1.1, the behavior of
Please note that the API import (1.0) will still work with newer releases of PyOtherSide, and will carry along the broken behavior, so if you want to write code that works on 1.0 and future versions, you can import the 1.0 API version and use the workaround described above. In PyOtherSide 1.2.0 (not yet released, see the master branch) a new API import (1.2) will be available with fixed behavior:
As for the more "advanced" imports ( |
Thanks Thomas, I've opened a new issue as requested: #15. |
Hi, a feature request here to allow more flexibility when importing/accessing python modules.
It would be great if
importModule
could accept an 'as' argument for the equivalentpython:
I also noticed that if importing a 'nested/namespaced' python module, e.g.
myapp.ui.foo
, then I can't use functions from it. It doesn't show an import error, but the functions aren't available when usingcall
.For example
myapp.api.foo.get_station_list
won't work, but if I import the namespaced module withaddImportPath('myapp/api')
thenfoo.get_station_list
does work.The text was updated successfully, but these errors were encountered: