Changeset 5c77050 in sasview


Ignore:
Timestamp:
Dec 21, 2011 7:42:29 AM (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:
dda70f7
Parents:
8b8a03f
Message:

another correction for argv index

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/setup.py

    r8b8a03f r5c77050  
    44 
    55import sys 
     6 
    67import os 
    78import platform 
     
    1415 
    1516# Options to enable OpenMP 
    16 if sys.argv[1] == "-nomp": 
     17if sys.argv[-1] == "-nomp": 
    1718    # Disable OpenMP 
    1819    copt = {} 
  • setup.py

    r8b8a03f r5c77050  
    44""" 
    55import sys 
     6 
    67import os 
    78import platform 
     
    3031ext_modules = [] 
    3132 
    32 if sys.argv[1] == "-nomp": 
     33if sys.argv[-1] == "-nomp": 
    3334    # Disable OpenMP 
    3435    copt = {} 
Note: See TracChangeset for help on using the changeset viewer.