Thanks, I've looked around in the source and it should be doable. On Wednesday, 7 May 2014 23:49:46 UTC+2, Hartmut Goebel wrote: > > Am 07.05.2014 14:04, schrieb Christiaan Maks: > > Hi, > > I want to run my --onefile .exe from a USB stick and I want to pass the > location of the .exe (so the USB drive) to the main Python file. How do I > do this? > > For clarity: > > Program.exe is on USB drive E:\ > Launching Program.exe results in extracting to the temporary folder on > C:\Users\... > The main.py file gets E:\ as argument when launched. > > > I'm afraid you'll have to add this to the bootloader yourself. It should > not be so complicated, though. > > -- > Schönen Gruß > Hartmut Goebel > Dipl.-Informatiker (univ), CISSP, CSSLP > Information Security Management, Security Governance, Secure Software > Development > > Goebel Consult, Landshut > http://www.goebel-consult.de > > Blog: > http://www.goebel-consult.de/blog/digitalcourage-fur-taz-panter-preis-vorgeschlagen > > Kolumne: > http://www.cissp-gefluester.de/2012-09-steht-ein-manta-fahrer-vor-der-uni > > Goebel Consult ist Mitglied bei http://www.7-it.de/ >
-- 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/d/optout.
