Message45921
Logged In: YES
user_id=113328
Another point - given a program which comprises a couple of
.py files in the same directory (say main.py and support.py)
it would be quite normal (at least for me!) to do "import
support" from main.py. This patch would break this - and I'd
find it difficult to accept what I'm doing as "a mistake".
Fixing this would involve adding something like
sys.path.insert(0,
os.path.dirname(os.path.abspath(sys.argv[0]))
at the top of my main script. I'd hate to try to explain
that to a beginner...
The use case here seems to be when a script itself has the
same name as a standard library module. I'd have to say that
this seems a fairly unlikely case - and easy to fix when it
happens. |
|
Date |
User |
Action |
Args |
2007-08-23 15:37:35 | admin | link | issue946373 messages |
2007-08-23 15:37:35 | admin | create | |
|