New issue 14 by sproaty: Wishlish: support for folders in 'data files'
http://code.google.com/p/gui2exe/issues/detail?id=14
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
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
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)]
Wonderful! Thanks, Andrea - sorry to report this as an issue.