Message45918
Logged In: YES
user_id=387193
But the problem is not with naming of my modules/packages
(part about relative import of modules I do understand, of
course), but with script naming.
For example consider script:
#!/usr/bin/python
import email
print 1
And name the script email.py, then run it, please. Python
tries to be too smart (IMHO) and variable sys.path is
polluted with directory of email.py script, therefore
standard email Python package will not be imported. |
|
Date |
User |
Action |
Args |
2007-08-23 15:37:35 | admin | link | issue946373 messages |
2007-08-23 15:37:35 | admin | create | |
|