Hello Giovanni,

You're great! It works!

I'm doing:

def lsremove(ls, val):
    try:
        ls.remove(val)
    except ValueError:
        pass

import os
import sys

lsremove(sys.path, '.')
lsremove(sys.path, os.getcwd())
lsremove(sys.path, '')
print sys.path

After that, no more undesired imports.

There is still a *small* hole bc I have to import os and sys before I can manipulate sys.path. Maybe when I learn how to do __import__ tricks I can get around that. Anyway, that solves the practical problem really, probability that someone will have "os.py" or "sys.py" script in their current directory is very small.

Thanks a lot for great work with pyinstaller! I love it!

Regards,
mk

--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to