[WS] Move simple functions into lib
git-svn-id: svn://kolibrios.org@9370 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
16
_tools/lib/platform.py
Normal file
16
_tools/lib/platform.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
def path(*args):
|
||||
return os.sep.join(args)
|
||||
|
||||
def is_win32():
|
||||
return True if sys.platform == "win32" else False
|
||||
|
||||
def is_linux():
|
||||
return True if sys.platform == "linux" or sys.platform == "linux2" else False
|
||||
|
||||
def is_osx():
|
||||
return True if sys.platform == "darwin" else False
|
||||
|
||||
|
Reference in New Issue
Block a user