Ignore:
Timestamp:
Oct 8, 2016 9:33:04 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
3150541, a4c2445
Parents:
3f9a18a
git-author:
Piotr Rozyczko <rozyczko@…> (10/08/16 09:27:54)
git-committer:
Piotr Rozyczko <rozyczko@…> (10/08/16 09:33:04)
Message:

Initial implementation of C model editor in pyconsole. Fixes #662

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/pyconsole.py

    rf1cbae7 r0912b405  
    231231        if result.path: 
    232232            self.bufferCreate(result.path) 
     233 
     234        # See if there is a corresponding C file 
     235        if result.path != None: 
     236            c_filename = os.path.splitext(result.path)[0] + ".c" 
     237            if os.path.isfile(c_filename): 
     238                self.bufferCreate(c_filename) 
     239 
    233240        cancel = False 
    234241        return cancel 
Note: See TracChangeset for help on using the changeset viewer.