Vielen Dank!
Just what I needed. Here is the actual code if anyone else wants to do the
same thing:
if __name__ == '__main__':
from PyInstaller.main import run
opts=['app.py', '-F', '-w', '-K', '--icon=LauncherIcon.ico']
run(opts)
Of course, there are many other options for the opts, based on one's needs.
The bat file is setting up a number of other options having to do with the
installer at the same time.
George
On Friday, March 27, 2015 at 6:22:40 PM UTC-4, Hartmut Goebel wrote:
>
> Am 27.03.2015 um 23:01 schrieb George Henne:
>
>
> I can certainly do by writing out a .bat file and doing a subprocess.call(),
> but I would like to invoke it within Python.
>
>
> I'm curious: Why would you want the write a .bat-file instead of calling
> pyinstaller directly like you do on the command line?
>
> Is it possible call pyInstaller from within a Python app?
>
>
> Of course it is:
>
> from PyInstaller.main import run
> run(.... arguments like on the command like ....)
>
> This is pretty much what pyinstaller.py does :-)
>
> --
> 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/in-need-for-an-enhanced-git-url-scheme
> Kolumne: http://www.cissp-gefluester.de/2010-06-adobe-und-der-maiszunsler
>
--
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.