Per doco's recommendation I changed this line:

   basedir = os.path.dirname(__file__)


To:


   if getattr(sys, 'frozen', None):
      basedir = sys._MEIPASS
   else:
      basedir = os.path.dirname(__file__)

         # This is the apps ini file:      fullINIFNAME = os.path.join(basedir, 
INIFNAME)


I built like so:

python pyinstaller.py --onefile --noconsole C:\Users\matelot\myapp\myapp.py


The basedir becomes this: C:\Users\rchin\AppData\Local\Temp\_MEI154642


What went wrong ? should I switch back to previous one-liner: 
basedir = os.path.dirname(__file__)


-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to