School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,492 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,828 people online right now. Registration is fast and FREE... Join Now!




Py2Exe For Multiple Files

 

Py2Exe For Multiple Files

XPherior

4 Jun, 2009 - 02:47 PM
Post #1

New D.I.C Head
Group Icon

Joined: 21 May, 2008
Posts: 7


Dream Kudos: 25
My Contributions
Hi there,

I did a pretty sizable project aimed at artists to allow the to manage their work. I titled my work 'PyCrylis', which was a Python implemenation of the Java based application called 'Acrylis.' I switched it over Python to learn the language in a fun way and to fix some bugs the Java version had.

When wrapping it up for my fellow artists, I realised that giving them all these .py files wouldn't fly with their comprehension of computers. Even if I had them install the Python interpreter, they would have to go through the trouble of fixing their PYTHONPATH environment variable to run it because of the extensive amount of files I used (and lack of experience to handle the problem otherwise).

So I come here to ask how one wraps multiple files into an .exe. I've seen singe files, but I cannot understand how to do a few. Here's my breakdown of code:

[Dir] Encryption
----->[File] Encryption.py
[Dir] Interface
----->[File] Graphics.py ** (Main entry point to the program) (Only file that contains a graphical interface.)
[Dir] Structure
----->[File] GlobalVales.py
----->[File] Project.py
[Dir] Xml
----->[File] Xml.py
[File] Database.xml

If you can help me sort this out, that'd be great. =P Thanks. happy.gif

This post has been edited by XPherior: 4 Jun, 2009 - 02:48 PM

User is offlineProfile CardPM
+Quote Post


shadhin

RE: Py2Exe For Multiple Files

12 Jun, 2009 - 09:36 AM
Post #2

D.I.C Regular
Group Icon

Joined: 16 Sep, 2008
Posts: 421



Thanked: 19 times
Dream Kudos: 3650
My Contributions
I think you can make exe file of all your python scripts. You have a main script(you said Graphics.py) and all the other programs are dependent on it. You can then make a package(installer) of all the scripts where you can put the graphics.py as the main exe. You can try some program (like inno setup) for this purpose.
User is offlineProfile CardPM
+Quote Post

XPherior

RE: Py2Exe For Multiple Files

12 Jun, 2009 - 11:18 AM
Post #3

New D.I.C Head
Group Icon

Joined: 21 May, 2008
Posts: 7


Dream Kudos: 25
My Contributions
I already sent it out to the client. My solution was lopping all of the classes into one file and using that on Py2Exe. Very sloppy, but I was pressed for time. =P Thanks, though.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 04:32AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month