Changeset 8db3904 in sasview for guiframe


Ignore:
Timestamp:
Jan 14, 2011 9:50:28 PM (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:
b70caa1
Parents:
5878f190
Message:

installing local plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/setup.py

    rbdcc69e r8db3904  
    77 
    88from distutils.sysconfig import get_python_lib 
    9 import os, sys 
     9import os 
     10import sys 
    1011 
     12     
     13path = os.path.join(os.getcwd(), 'local_perspectives') 
    1114package_dir = { "sans.guiframe":".", 
    12                 "sans.guiframe.local_perspectives":"local_perspectives", 
    13                 "sans.guiframe.local_perspectives.plotting":"local_perspectives/plotting"} 
    14  
     15                "sans.guiframe.local_perspectives":"local_perspectives"} 
    1516packages = ["sans.guiframe",  
    16             "sans.guiframe.local_perspectives", 
    17             "sans.guiframe.local_perspectives.plotting"] 
    18  
     17            "sans.guiframe.local_perspectives"] 
     18# build local plugin 
     19for dir in os.listdir(path): 
     20    if dir not in ['.svn','__init__.py', '__init__.pyc']: 
     21        package_name = "sans.guiframe.local_perspectives." + dir 
     22        packages.append(package_name) 
     23        package_dir[package_name] = "local_perspectives/" + dir 
     24                
    1925# Check whether the sans module exists, 
    2026# if not, make sure a default __init__ is created 
Note: See TracChangeset for help on using the changeset viewer.