In epocroot handling make windows the exceptional case because it is, use os.sep. wip
authorraptorbot <raptorbot@systemstesthead.symbian.intra>
Mon, 18 Jan 2010 17:04:24 +0000
branchwip
changeset 133 8184bb802ee1
parent 132 2022a4abb126
child 134 2648751b64b4
In epocroot handling make windows the exceptional case because it is, use os.sep.
sbsv2/raptor/python/raptor.py
--- a/sbsv2/raptor/python/raptor.py	Mon Jan 18 17:03:32 2010 +0000
+++ b/sbsv2/raptor/python/raptor.py	Mon Jan 18 17:04:24 2010 +0000
@@ -61,14 +61,14 @@
 	incoming_epocroot = os.environ["EPOCROOT"]
         epocroot = incoming_epocroot.replace("\\","/")
 else:
-	if 'linux' in hostplatform:
+	if 'win' in hostplatform:
+		incoming_epocroot = os.sep
+		epocroot = "/"
+		os.environ["EPOCROOT"] = os.sep
+	else:
 		epocroot=os.environ['HOME'] + os.sep + "epocroot"
 		os.environ["EPOCROOT"] = epocroot
 		incoming_epocroot = epocroot
-	else:
-		incoming_epocroot = "\\"
-		epocroot = "/"
-		os.environ["EPOCROOT"] = os.sep
 
 if "SBS_BUILD_DIR" in os.environ:
 	sbs_build_dir = os.environ["SBS_BUILD_DIR"]