fix runtime.py filename case to avoid problem on multi-platform
authorgreg
Fri, 18 Sep 2009 14:58:22 +0200
changeset 391 9b1801ef99b5
parent 390 44909ffb2cc6
child 398 31d08063b5d6
fix runtime.py filename case to avoid problem on multi-platform
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Fri Sep 18 14:30:57 2009 +0200
+++ b/runtime/PLCObject.py	Fri Sep 18 14:58:22 2009 +0200
@@ -212,7 +212,7 @@
         
         for filename in os.listdir(self.workingdir):
             name, ext = os.path.splitext(filename)
-            if name.startswith("runtime") and ext == ".py":
+            if name.upper().startswith("RUNTIME") and ext.upper() == ".PY":
                 try:
                     # TODO handle exceptions in runtime.py
                     # pyfile may redefine _runtime_cleanup