--- a/runtime/PLCObject.py Fri Sep 04 17:33:51 2009 +0200
+++ b/runtime/PLCObject.py Wed Sep 16 13:54:57 2009 +0200
@@ -111,6 +111,7 @@
self.DummyIteratorLock.acquire()
+ self.DummyIteratorLock.release() self._PythonIterator = DummyIterator
@@ -171,36 +172,10 @@
self.PLClibraryHandle = None
# Unload library explicitely
if getattr(self,"_PLClibraryHandle",None) is not None:
dlclose(self._PLClibraryHandle)
- res = self._DetectDirtyLibs()
- self._PLClibraryHandle = None
+ self._PLClibraryHandle = None self.PLClibraryLock.release()
- def _DetectDirtyLibs(self):
- # Get lib dependencies (for dirty lib detection)
- # parasiting libs listed with ldd
- badlibs = [ toks.split()[0] for toks in commands.getoutput(
- "ldd "+self._GetLibFileName()).splitlines() ]
- if badlib[:6] in ["libwx_",
- #badhandle = dlopen(badlib, dl.RTLD_NOLOAD)
- PLCprint("Dirty lib detected :" + badlib)
def PrepareRuntimePy(self):
@@ -308,7 +283,7 @@
def NewPLC(self, md5sum, data, extrafiles):
PLCprint("NewPLC (%s)"%md5sum)
- if self.PLCStatus in ["Stopped", "Empty", "Dirty", "Broken"]:
+ if self.PLCStatus in ["Stopped", "Empty", "Broken"]: NewFileName = md5sum + lib_ext
extra_files_log = os.path.join(self.workingdir,"extra_files.txt")