From: duplo Date: Mon, 22 Dec 2008 16:10:44 +0000 (+0000) Subject: Add the getSystemPath function that returns a list of string containig the path X-Git-Tag: 2.1.0~565 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0b3b258b39102437cb2a87f7534f0e4d2456211d;p=bertos.git Add the getSystemPath function that returns a list of string containig the path git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2117 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 0e1d4bbb..4af4947a 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -26,6 +26,14 @@ def createBertosProject(directory): os.mkdir(directory) open(directory + "/project.bertos", "w") +def getSystemPath(): + path = os.environ["PATH"] + if os.name == "nt": + path = path.split(";") + else: + path = path.split(":") + return path + def findToolchains(pathList): toolchains = [] for element in pathList: