Add the getSystemPath function that returns a list of string containig the path
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Dec 2008 16:10:44 +0000 (16:10 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Dec 2008 16:10:44 +0000 (16:10 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2117 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 0e1d4bbb76a74e9388651637bdb0365ccaafecf4..4af4947a0a735bb02eb2e45eb27065f94167d50e 100644 (file)
@@ -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: