akshayrkulkarni / gui2exe

Automatically exported from code.google.com/p/gui2exe
0 stars 0 forks source link

Wishlish: support for folders in 'data files' #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. select recursive directory add
2. add a folder
3. create some new files in the folder/sub-folders
4. the items from the folder in GUI2EXE's 'data files' list must be
deleted, because re-adding the same folder over and over will keep adding
to the data file list
5. After deleting the folder's "old" file list, and the user must re-add
the folder

What is the expected output? What do you see instead?

Adding a folder would 'glob' the files to process at compile time.
This means there is less manual configuration spent, as you just specify a
folder initially and its current contents will always be used. Useful for
help folders, translations and images/other resources.

What version of GUI2Exe, Python and wxPython are you using? On what
operating system?

Please provide any additional information below.

also, an option to disable the splash screen would be nice. regards,
Steven Sproat

Original issue reported on code.google.com by spro...@gmail.com on 27 Dec 2009 at 3:37

GoogleCodeExporter commented 9 years ago
Hi,

   you can already do what you ask for data_files by using the "Custom Code" option
in GUI2Exe (menu "Options" => "Add Custom Code"). This code will be put in your
setup.py file and executed. It can be whatever kind of code you like, but
specifically for the data_files option you can do something like this:

mygif = glob.glob(baseFolder+"\\program\\images\\*.gif")
data_files += [("images", mygif)]

Original comment by andrea.gavana@gmail.com on 28 Dec 2009 at 3:25

GoogleCodeExporter commented 9 years ago
Wonderful! Thanks, Andrea - sorry to report this as an issue.

Original comment by spro...@gmail.com on 28 Dec 2009 at 4:54

GoogleCodeExporter commented 9 years ago
I am closing this, unless someone has more to add to it :-D

Original comment by andrea.gavana@gmail.com on 2 Mar 2010 at 9:35