Changeset b221176 in sasview
- Timestamp:
- Oct 9, 2013 10:42:24 AM (11 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- f2148b2
- Parents:
- aebd16a
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r3d24489 rb221176 166 166 package_data['sans.perspectives.fitting'] = ['media/*','plugin_models/*'] 167 167 168 package_dir["sans.perspectives.calculator"] = os.path.join("src", "sans", "perspectives", "calculator")169 168 packages.extend(["sans.perspectives", "sans.perspectives.calculator"]) 170 169 package_data['sans.perspectives.calculator'] = ['images/*', 'media/*'] 171 170 172 171 # Data util 173 package_dir["data_util"] = os.path.join("src", " sansutil")172 package_dir["data_util"] = os.path.join("src", "data_util") 174 173 packages.extend(["data_util"]) 175 174 … … 249 248 250 249 251 package_dir["sans"] = os.path.join("src", "sans") 252 package_dir["sans.models"] = model_dir 253 package_dir["sans.models.sans_extension"] = os.path.join("src", "sans", "models", "sans_extension") 254 package_data['sans.models'] = [os.path.join('media', "*.*")] 255 package_data['sans.models'] += [os.path.join('media','img', "*.*")] 256 packages.extend(["sans","sans.models","sans.models.sans_extension"]) 257 258 smearer_sources = [os.path.join(smear_dir, "smearer.cpp"), 259 os.path.join(smear_dir, "smearer_module.cpp")] 260 geni_sources = [os.path.join(gen_dir, "sld2i_module.cpp")] 261 if os.name=='nt': 262 smearer_sources.append(os.path.join(igordir, "winFuncs.c")) 263 geni_sources.append(os.path.join(igordir, "winFuncs.c")) 264 ext_modules.extend( [ Extension("sans.models.sans_extension.c_models", 265 sources=model_sources, 266 include_dirs=[igordir, includedir, 267 c_model_dir, numpy_incl_path, cephes_dir], 268 ), 269 # Smearer extension 270 Extension("sans.models.sans_extension.smearer", 271 sources = smearer_sources, 272 include_dirs=[igordir, 273 smear_dir, numpy_incl_path], 274 ), 275 276 Extension("sans.models.sans_extension.smearer2d_helper", 277 sources = [os.path.join(smear_dir, 278 "smearer2d_helper_module.cpp"), 279 os.path.join(smear_dir, 280 "smearer2d_helper.cpp"),], 281 include_dirs=[smear_dir, numpy_incl_path], 282 ), 283 284 Extension("sans.models.sans_extension.sld2i", 285 sources = [os.path.join(gen_dir, 286 "sld2i_module.cpp"), 287 os.path.join(gen_dir, 288 "sld2i.cpp"), 289 os.path.join(c_model_dir, 290 "libfunc.c"), 291 os.path.join(c_model_dir, 292 "librefl.c"),], 293 include_dirs=[gen_dir, includedir, 294 c_model_dir, numpy_incl_path], 295 ) 296 ] ) 250 #package_dir["sans.models"] = model_dir 251 #package_dir["sans.models.sans_extension"] = os.path.join("src", "sans", "models", "sans_extension") 252 #package_data['sans.models'] = [os.path.join('media', "*.*")] 253 #package_data['sans.models'] += [os.path.join('media','img', "*.*")] 254 #packages.extend(["sans","sans.models","sans.models.sans_extension"]) 255 # 256 #smearer_sources = [os.path.join(smear_dir, "smearer.cpp"), 257 # os.path.join(smear_dir, "smearer_module.cpp")] 258 #geni_sources = [os.path.join(gen_dir, "sld2i_module.cpp")] 259 #if os.name=='nt': 260 # smearer_sources.append(os.path.join(igordir, "winFuncs.c")) 261 # geni_sources.append(os.path.join(igordir, "winFuncs.c")) 262 #ext_modules.extend( [ Extension("sans.models.sans_extension.c_models", 263 # sources=model_sources, 264 # include_dirs=[igordir, includedir, 265 # c_model_dir, numpy_incl_path, cephes_dir], 266 # ), 267 # # Smearer extension 268 # Extension("sans.models.sans_extension.smearer", 269 # sources = smearer_sources, 270 # include_dirs=[igordir, 271 # smear_dir, numpy_incl_path], 272 # ), 273 # 274 # Extension("sans.models.sans_extension.smearer2d_helper", 275 # sources = [os.path.join(smear_dir, 276 # "smearer2d_helper_module.cpp"), 277 # os.path.join(smear_dir, 278 # "smearer2d_helper.cpp"),], 279 # include_dirs=[smear_dir, numpy_incl_path], 280 # ), 281 # 282 # Extension("sans.models.sans_extension.sld2i", 283 # sources = [os.path.join(gen_dir, 284 # "sld2i_module.cpp"), 285 # os.path.join(gen_dir, 286 # "sld2i.cpp"), 287 # os.path.join(c_model_dir, 288 # "libfunc.c"), 289 # os.path.join(c_model_dir, 290 # "librefl.c"),], 291 # include_dirs=[gen_dir, includedir, 292 # c_model_dir, numpy_incl_path], 293 # ) 294 # ] ) 297 295 298 296 # SasView -
src/sans/guiframe/CategoryInstaller.py
r5777106 rb221176 49 49 returns the dir where default_cat.p should be 50 50 """ 51 import sans.sansview 51 52 cat_file = "default_categories.p" 52 app_dir = sys.path[0] 53 if os.path.isfile(app_dir): 54 app_dir = os.path.dirname(app_dir) 55 n_dir = 12 56 for i in range(n_dir): 57 path = os.path.join(app_dir, cat_file) 58 if os.path.isfile(path): 59 path = os.path.dirname(path) 60 return path 61 else: 62 app_dir, _ = os.path.split(app_dir) 63 64 raise RuntimeError('Could not find the App folder') 53 dir, file_name = os.path.split(sans.sansview.__file__) 54 cat_file_path = os.path.join(dir, cat_file) 55 if os.path.isfile(cat_file_path): 56 cat_file_dir = os.path.dirname(cat_file_path) 57 return cat_file_dir 58 59 raise RuntimeError('CategoryInstaller: Could not find folder containing default categories') 65 60 66 61 @staticmethod -
src/sans/guiframe/gui_manager.py
r5777106 rb221176 94 94 config_module = imp.load_module(file, fObj, path_config, descr) 95 95 except: 96 pass96 logging.error("Error loading %s/%s: %s" % (path, file, sys.exc_value)) 97 97 finally: 98 98 if fObj is not None: 99 99 fObj.close() 100 logging.info("GuiManager loaded %s/%s" % (path, file)) 100 101 return config_module 101 102
Note: See TracChangeset
for help on using the changeset viewer.