EvilZone
Programming and Scripting => Scripting Languages => : shimomura March 10, 2014, 07:17:08 PM
-
Playing around with Tkinter and Subprocess modules in Python. Created a button that when pressed, runs a .bat file. First question is how I go about packaging my program as an installation? Ex) Installs the created python program and drops the .bat in a folder where the program can find it. Any link to documentation on this kind of stuff would be awesome.
-
If this is possible then we can create a multi platform application! :D
wow..
-
Never used it, but heard it's great: http://www.py2exe.org/
-
Thanks guys. Just used it to pack the files up. The only pain in the ass is bundling Microsoft's runtime DLLs but besides that the module is beautiful.
-
In order to pack the files as a distributable folder:
-Download py2exe from http://www.py2exe.org/
-Create setup script by importing py2exe and write the proper script.
-Run the script which will pack the files into a "dist" folder minus Microsoft's runtime files.
The dlls are included in most VB installs as well as with python but if the intended user doesn't have these files the program will obviously with throw a code.
The py2exe website outlines all of this in a more detailed fashion under the tutorial section in the top nav.