diff options
Diffstat (limited to 'platform_helper.py')
-rw-r--r-- | platform_helper.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform_helper.py b/platform_helper.py index bc3a125..eab8262 100644 --- a/platform_helper.py +++ b/platform_helper.py @@ -19,7 +19,7 @@ import sys def platforms(): return ['linux', 'darwin', 'freebsd', 'openbsd', 'solaris', 'sunos5', - 'mingw', 'msvc', 'gnukfreebsd', 'bitrig'] + 'mingw', 'msvc', 'gnukfreebsd', 'bitrig', 'netbsd'] class Platform(object): def __init__(self, platform): @@ -43,6 +43,8 @@ class Platform(object): self._platform = 'msvc' elif self._platform.startswith('bitrig'): self._platform = 'bitrig' + elif self._platform.startswith('netbsd'): + self._platform = 'netbsd' def platform(self): return self._platform @@ -81,3 +83,6 @@ class Platform(object): def is_bitrig(self): return self._platform == 'bitrig' + + def is_netbsd(self): + return self._platform == 'netbsd' |