Changeset 5a405bd in sasview for src/sas/sasgui/guiframe
- Timestamp:
- Sep 20, 2017 5:26:17 PM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 1693141
- Parents:
- 6e50a8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/__init__.py
r959eb01 r5a405bd 14 14 # Check for data path next to exe/zip file. 15 15 # If we are inside a py2exe zip file, we need to go up 16 # to get to the directory containing 16 # to get to the directory containing 17 17 # the media for this module 18 18 path = os.path.dirname(__file__) … … 27 27 return module_media_path 28 28 return media_path 29 29 30 30 raise RuntimeError('Could not find guiframe images files') 31 31 … … 40 40 # Check for data path next to exe/zip file. 41 41 # If we are inside a py2exe zip file, we need to go up 42 # to get to the directory containing 42 # to get to the directory containing 43 43 # the media for this module 44 44 path = os.path.dirname(__file__) … … 58 58 """ 59 59 Return the data files associated with guiframe images . 60 60 61 61 The format is a list of (directory, [files...]) pairs which can be 62 62 used directly in setup(...,data_files=...) for setup.py. … … 64 64 """ 65 65 data_files = [] 66 path = get_data_path(media="images") 67 for f in findall(path): 68 data_files.append(('images/icons', [f])) 69 path = get_media_path(media="media") 70 for f in findall(path): 71 data_files.append(('media/guiframe_media', [f])) 66 data_files.append(('images/icons', findall(get_data_path("images")))) 67 data_files.append(('media/guiframe_media', findall(get_data_path("media")))) 72 68 73 69 return data_files
Note: See TracChangeset
for help on using the changeset viewer.