Message289237
> C:\Temp doesn't belong in sys.path in this case
Hang on, why not? If I were running a module.py then it would be, so why is a package\__main__.py different (and not able to import itself or its siblings)? The package is the "script" being run here, yes?
Or is __main__.py different from __init__.py in this regard? (That is, it isn't *part* of the package, it's just a loose script that happens to inherit the name of its directory) |
|
Date |
User |
Action |
Args |
2017-03-08 14:37:18 | steve.dower | set | recipients:
+ steve.dower, ncoghlan, nedbat, ned.deily, eryksun |
2017-03-08 14:37:18 | steve.dower | set | messageid: <1488983838.86.0.294259772165.issue29723@psf.upfronthosting.co.za> |
2017-03-08 14:37:18 | steve.dower | link | issue29723 messages |
2017-03-08 14:37:18 | steve.dower | create | |
|