diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-11-14 23:38:47 +0100 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-11-16 07:25:36 +0100 |
commit | 7a55c301f87c8dfb2118686bd6e9b88899016f9a (patch) | |
tree | 222565141fe6698ac6987047b8f658ea3c21204a /build/mixxx.py | |
parent | 84c90a9d1cc12967acf20b3cdfdf0c7cfd4991fd (diff) |
Fix platform detection
Diffstat (limited to 'build/mixxx.py')
-rw-r--r-- | build/mixxx.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/mixxx.py b/build/mixxx.py index 46148d0457..0e8850ac00 100644 --- a/build/mixxx.py +++ b/build/mixxx.py @@ -261,11 +261,11 @@ class MixxxBuild(object): if os.name == 'nt' or sys.platform == 'win32': return 'windows' # Should cover {Net,Open,Free,DragonFly}BSD, but only tested on OpenBSD - if 'bsd' in sys.platform: + if sys.platform.startswith('bsd'): return 'bsd' - if sys.platform in ['linux2', 'linux3']: + if sys.platform.startswith('linux'): return 'linux' - if sys.platform == 'darwin': + if sys.platform.startswith('darwin'): return 'osx' logging.error("Couldn't determine platform. os.name: %s sys.platform: %s" % (os.name, sys.platform)) |