Hi Duane, On Mon, Feb 9, 2009 at 9:28 PM, DuaneKaufman wrote: > > Hi, > > On Feb 7, 11:07 am, Andrea Gavana <[email protected]> wrote: >> Hi Duane, >> >> On Sat, Feb 7, 2009 at 2:44 PM, DuaneKaufman wrote: >> >> > Hi, >> >> > I have been using GUI2EXE (PyInstaller backend) quite a bit as of >> > late, and noticed a few things: >> >> > 1) I forget the wording of the flags, but one can choose to clean up >> > build directory, and clean up dist directory. When I chose to clean up >> > the dist directory, GUI2EXE deleted my Python source files (I build >> > into the same directory as the source) Is this the way it is supposed >> > to be? >> >> Not really: usually it is good practice to build the executable in a >> "dist" directory which does not contain your source files, as this >> keeps things separated. In my opinion, py2exe does a very good job in >> putting the executable in a different folder by default. In any case, >> cleaning the "dist" directory in GUI2Exe does exactly this: it deletes >> the entire "dist" directory. >> > For both 2) and 3) below, I figured out my error, and it had nothing > to do with GUI2EXE > > For 1) however, I still find the behavior odd, when I select 'Delete > "build" directory', I still end up with a folder called > 'buildtmpvr07e-' in the root of my source files, in addition to a file > called 'warntmpvr07e-.txt' These file never get deleted.
When you choose "Delete build directory", GUI2Exe looks for a directory called "build". The fact that PyInstaller creates a random directory name (together with a random file name) it's an added complication: why not just creating a folder called "build"? The only thing I can imagine I can do is to look for newly created folder with a somehow random name in them and delete them, but this is very fragile. I still I don't get the reason behind PyInstaller creating random folders and files like that, but I can investigate if there is an obvious workaround. Thank you for your comments. Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.alice.it/infinity77/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/PyInstaller?hl=en -~----------~----~----~----~------~----~------~--~---
