This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | ncoghlan |
|---|---|
| Recipients | dangyogi, ncoghlan |
| Date | 2008年04月08日.15:09:49 |
| SpamBayes Score | 0.0066070324 |
| Marked as misclassified | No |
| Message-id | <1207667392.62.0.0477858197283.issue2410@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Running the interactive interpreter like that places the current directory on sys.path, so it *is* doing an absolute import of your pseudo email package. (If it didn't do that, your test would fail at the "import foo" line) Instead of cd'ing into test the way you did, invoke the interpreter from the next directory up and do an import of 'test.foo', and you should see the absolute imports in the foo module having the desired effect. (I expect the reason you didn't run into this for the os module is because the os module is bootstrapped quite early in Python's startup process, so you'd have to try really hard to get it to see something other than the builtin standard library version of os) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年04月08日 15:09:54 | ncoghlan | set | spambayes_score: 0.00660703 -> 0.0066070324 recipients: + ncoghlan, dangyogi |
| 2008年04月08日 15:09:52 | ncoghlan | set | spambayes_score: 0.00660703 -> 0.00660703 messageid: <1207667392.62.0.0477858197283.issue2410@psf.upfronthosting.co.za> |
| 2008年04月08日 15:09:50 | ncoghlan | link | issue2410 messages |
| 2008年04月08日 15:09:49 | ncoghlan | create | |