SL-15742 Return correct default platform for linux

Since python 3.3 sys.platform for Linux will always be 'linux'. See https://bugs.python.org/issue12326 - fix by NickyD
meow-7.2.2
Andrey Lihatskiy 2022-02-14 19:52:09 +02:00
parent ee0d2648e8
commit f695a5d1a8
1 changed files with 1 additions and 2 deletions

View File

@ -83,8 +83,7 @@ def proper_windows_path(path, current_platform = sys.platform):
return drive_letter.upper() + ':\\' + rel.replace('/', '\\')
def get_default_platform(dummy):
return {'linux2':'linux',
'linux1':'linux',
return {'linux':'linux',
'cygwin':'windows',
'win32':'windows',
'darwin':'darwin'