Skip to content

Commit

Permalink
change linux to linux2 in core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mikofski committed Feb 13, 2016
1 parent 2f6134f commit ea90cce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions solar_utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
from solar_utils.exceptions import SOLPOS_Error, SPECTRL2_Error

_DIRNAME = os.path.dirname(__file__)
if sys.platform == 'win32':
PLATFORM = sys.platform
PLATFORM = sys.platform
if PLATFORM == 'win32':
SOLPOSAM = 'solposAM.dll'
SPECTRL2 = 'spectrl2.dll'
elif sys.platform.startswith('linux'):
PLATFORM = 'linux'
elif PLATFORM == 'linux2':
SOLPOSAM = 'libsolposAM.so'
SPECTRL2 = 'libspectrl2.so'
elif sys.platform.startswith('darwin'):
PLATFORM = 'darwin'
elif PLATFORM == 'darwin':
SOLPOSAM = 'libsolposAM.dylib'
SPECTRL2 = 'libspectrl2.dylib'
else:
raise OSError('Platform %s is unknown' % PLATFORM)
SOLPOSAMDLL = os.path.join(_DIRNAME, PLATFORM, SOLPOSAM)
SPECTRL2DLL = os.path.join(_DIRNAME, PLATFORM, SPECTRL2)

Expand Down

0 comments on commit ea90cce

Please sign in to comment.