fixed non portable file sep
authoretisserant
Tue, 21 Aug 2007 08:55:06 +0200
changeset 74 a33f06a63e1d
parent 73 f2529e34e4b7
child 75 82d371634f15
fixed non portable file sep
plcopen/plcopen.py
--- a/plcopen/plcopen.py	Tue Aug 21 08:54:41 2007 +0200
+++ b/plcopen/plcopen.py	Tue Aug 21 08:55:06 2007 +0200
@@ -48,9 +48,9 @@
 PLCOpenTypes = {}
 base_folder = ""
 for path in sys.path:
-    if os.path.isfile(os.path.join(path, "plcopen/TC6_XML_V10_B.xsd")):
+    if os.path.isfile(os.path.join(path, "plcopen", "TC6_XML_V10_B.xsd")):
         base_folder = path
-GenerateClassesFromXSD(os.path.join(base_folder, "plcopen/TC6_XML_V10_B.xsd"))
+GenerateClassesFromXSD(os.path.join(base_folder, "plcopen", "TC6_XML_V10_B.xsd"))
 CreateClasses(PLCOpenClasses, PLCOpenTypes)
 
 cls = PLCOpenClasses.get("dataType", None)