Changeset 70b760da in sasview


Ignore:
Timestamp:
Aug 24, 2011 8:26:16 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
4ad076b
Parents:
b3145bf
Message:

shorter path imports

Location:
fittingview/src/sans/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    r49c69de r70b760da  
    26132613        """ 
    26142614        from help_panel import  HelpWindow 
    2615         import sans.models as models  
     2615        from sans.models import get_data_path 
    26162616         
    26172617        # Get models help model_function path 
    2618         path = models.get_data_path(media='media') 
     2618        path = get_data_path(media='media') 
    26192619        model_path = os.path.join(path,"model_functions.html") 
    26202620        if self.model == None: 
  • fittingview/src/sans/perspectives/fitting/help_panel.py

    rc0a30a24 r70b760da  
    4949        self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER, size=(500,-1)) 
    5050 
    51         import sans.models as models  
    5251        # get the media path 
    53         path = models.get_data_path(media='media') 
     52        if pageToOpen != None: 
     53            path = os.path.dirname(pageToOpen) 
     54        else: 
     55            from sans.models import get_data_path as model_path 
     56            # Get models help model_function path 
     57            path = model_path(media='media') 
     58 
    5459        self.path = os.path.join(path,"model_functions.html") 
    5560        self.path_pd = os.path.join(path,"pd_help.html") 
    5661        self.path_sm = os.path.join(path,"smear_computation.html") 
    57         import sans.perspectives.fitting as fitting 
    58          
    59         fitting_path = fitting.get_data_path(media='media') 
     62        from sans.perspectives.fitting import get_data_path as fit_path 
     63        fitting_path = fit_path(media='media') 
    6064         
    6165        _html_file = {"status_bar_help.html":"Status Bar Help", 
Note: See TracChangeset for help on using the changeset viewer.