Changeset e20c65d in sasview


Ignore:
Timestamp:
Sep 15, 2016 8:33:57 AM (5 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
e095a74e
Parents:
73e0427
git-author:
Jeff Krzywon <krzywon@…> (09/02/16 08:02:04)
git-committer:
Piotr Rozyczko <rozyczko@…> (09/15/16 08:33:57)
Message:

Resolves #627: Modified subprocess call to be os dependant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/__init__.py

    r73e0427 re20c65d  
    55    import subprocess 
    66    import os 
     7    import platform 
    78    FNULL = open(os.devnull, 'w') 
    8     git_revision = subprocess.check_output(['git describe', '--tags'], 
     9    if platform.system() == "Windows": 
     10        args = ['git', 'describe', '--tags'] 
     11    else: 
     12        args = ['git describe --tags'] 
     13    git_revision = subprocess.check_output(args, 
    914    #git_revision = subprocess.check_output(['pwd'], 
    1015                    stderr=FNULL, 
Note: See TracChangeset for help on using the changeset viewer.