Comment 6 for bug 510642

Revision history for this message
mac9416 (mac9416) wrote :

Hey, Kevin,

I went looking around for a solution to this and found another one. Since it doesn't depend on __file__, I think it may work when compiled.

"""
import os
import sys
os.chdir(os.path.abspath(os.path.dirname(sys.argv[0])))
"""

That works when run as source. I will test it compiled soon.