Changeset fe4224b in sasview for sansview/build_sansview.py


Ignore:
Timestamp:
Sep 9, 2011 7:04:52 PM (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:
6446f87
Parents:
3bc6090
Message:

improved the previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/build_sansview.py

    r3bc6090 rfe4224b  
    270270            import datetime 
    271271            for line in conf_file.readlines(): 
    272                 conf += line 
    273                 if line.count('__version__'): 
     272                if line.count('__build__'): 
    274273                    conf += "__build__ = '%s-%s' \n"% (build_num, datetime.date.today()) 
     274                else: 
     275                    conf += line 
    275276            conf_file.close() 
    276277            conf_file = open('local_config.py', 'w') 
Note: See TracChangeset for help on using the changeset viewer.