From 0b3b258b39102437cb2a87f7534f0e4d2456211d Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 22 Dec 2008 16:10:44 +0000 Subject: [PATCH] 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 --- wizard/bertos_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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: -- 2.25.1