Changeset 899e084 in sasview for sasview/installer_generator.py


Ignore:
Timestamp:
Jun 27, 2016 7:36:41 AM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
80c2c85
Parents:
efe730d
Message:

build console app as well as gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/installer_generator.py

    refe730d r899e084  
    44exists in the current directory. Edit local_config.py according to your needs. 
    55""" 
     6import os 
     7import sys 
     8import string 
     9 
     10root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
     11sys.path.insert(0, os.path.join(root, 'sasview-install', 'Lib', 'site-packages')) 
    612from sas.sasview import local_config 
    7 import os  
    8 import string 
    913 
    1014REG_PROGRAM = """{app}\MYPROG.EXE"" ""%1""" 
     
    1317AppVerName = str(local_config.__appname__ )+'-'+ str(local_config.__version__) 
    1418Dev = '' 
    15 if AppVerName.lower().count('dev') > 0: 
     19if 'dev' in AppVerName.lower(): 
    1620    Dev = '-Dev' 
    1721AppPublisher = local_config._copyright 
Note: See TracChangeset for help on using the changeset viewer.