Changeset 85a24d9 in sasview for invariantview


Ignore:
Timestamp:
Apr 22, 2010 9:00:36 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
2b0443f
Parents:
e56869f
Message:

allow htlm file to show in mac too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/__init__.py

    re56869f r85a24d9  
    1616    # If we are inside a py2exe zip file, we need to go up 
    1717    # to get to the directory containing  
    18     # the media for thsi module 
     18    # the media for this module 
    1919    path = os.path.dirname(__file__) 
     20    #Look for maximum n_dir up of the current dir to find media 
    2021    n_dir = 12 
    2122    for i in range(n_dir): 
     
    2324        media_path = os.path.join(path, media) 
    2425        if os.path.isdir(media_path): 
    25              module_media_path = os.path.join(media_path,'invariant_media' ) 
     26             module_media_path = os.path.join(media_path,'invariant_media') 
    2627             if os.path.isdir(module_media_path): 
    2728                 return module_media_path 
Note: See TracChangeset for help on using the changeset viewer.