Python PyInstaller.utils.hooks.collect_data_files() Examples
The following are 2
code examples of PyInstaller.utils.hooks.collect_data_files().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
PyInstaller.utils.hooks
, or try the search function
.
Example #1
Source File: hook_utils.py From spimagine with BSD 3-Clause "New" or "Revised" License | 5 votes |
def _my_collect_data_files(modname, flatten_dirs = False, **kwargs): files = collect_data_files(modname, **kwargs) if flatten_dirs: # files = [(source, os.path.split(dest)[0])for source, dest in files] files = [(source, "") for source, dest in files] return files
Example #2
Source File: hook_utils.py From spimagine with BSD 3-Clause "New" or "Revised" License | 5 votes |
def _my_collect_data_files(modname, flatten_dirs = False, **kwargs): files = collect_data_files(modname, **kwargs) if flatten_dirs: # files = [(source, os.path.split(dest)[0])for source, dest in files] files = [(source, ".") for source, dest in files] return files