Changeset 3179


Ignore:
Timestamp:
Dec 6, 2017 9:07:37 PM (6 years ago)
Author:
toby
Message:

Py3: sys.platform is linux rather than linux2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpath.py

    r3167 r3179  
    469469    elif sys.platform == "darwin":
    470470        prefix = 'mac'
    471     elif sys.platform == "linux2":
     471    elif sys.platform.startswith("linux"):
    472472        prefix = 'linux'
    473473    else:
     
    796796                #if platform.mac_ver()[0].startswith('10.5.'):
    797797                #    bindir += '_10.5'
    798             elif sys.platform == "linux2":
     798            elif sys.platform.startswith("linux"):
    799799                if platform.architecture()[0] == '64bit':
    800800                    bindir = 'binlinux64-%d.%d' % sys.version_info[0:2]
Note: See TracChangeset for help on using the changeset viewer.