Developing inside of my project directory:
- PylonsProject
- file1
- file2
- file3
* Package1
- file4
- file5
* Package2
- file6
- file7
* Random directory 1 (not a package)
- file8
Is it possible to import anything from package 1 or 2? Because file 8
is not in a package, I think the only semantics available to it are
absolute imports. Relative imports don't seem to work.
I was bit by this because I didn't think of it, and I had "from
PylonsProject.Package1.file4 import *" inside of file8, which did not
throw an error because it was finding my installed production library
on sys.path. Python did not complain so I didn't think about it, but
I soon realized that the import was not using my latest development
code, but the last released production library.
Similarly, how can I import my development code inside of an
interactive interpreter if the import will always be absolute?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---