Bug#503632: Python scripts load modules from current directory

2008-11-17 Thread Alex Romosan
Cyril Brulebois <[EMAIL PROTECTED]> writes: > Alex Romosan <[EMAIL PROTECTED]> (12/11/2008): > >> but this seems silly. shouldn't the current directory be appended to >> the end of the system path so system modules are loaded first and then >> if they don't exist they are loaded from the current d

Bug#503632: Python scripts load modules from current directory

2008-11-17 Thread Cyril Brulebois
Hi Alex. Alex Romosan <[EMAIL PROTECTED]> (12/11/2008): > as intended, i guess, this patch breaks loading modules from the > current directory but i have scripts that need to load extra modules > from the current directory. how does one do it now? i've modified my > scripts to do > > import sys >

Bug#503632: Python scripts load modules from current directory

2008-11-12 Thread Alex Romosan
as intended, i guess, this patch breaks loading modules from the current directory but i have scripts that need to load extra modules from the current directory. how does one do it now? i've modified my scripts to do import sys sys.path.append(".") import Module but this seems silly. shouldn't t