You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
699 B

#!/usr/bin/env python3
import os, platform
print( "Updating tools for platform " + platform.system() )
toolsPath = os.path.join( os.path.dirname( os.path.realpath( __file__ ) ), "Tools" )
if ( platform.system() == "Darwin" ):
command = os.path.join( toolsPath, "UpdateToolsDarwin.sh" )
os.system( command )
elif ( platform.system() == "Linux" ):
command = os.path.join( toolsPath, "UpdateToolsLinux.sh" )
os.system( command )
elif ( platform.system() == "Windows" ):
command = os.path.join( toolsPath, "UpdateToolsWindows.ps1" )
os.system( "powershell " + command )
else:
print( "Unrecognised platform: " + platform.system() )
raise SystemExit( 1 )