runtime/PLCObject.py
changeset 1832 0f1081928d65
parent 1831 56b48961cc68
child 1846 14b40afccd69
equal deleted inserted replaced
1831:56b48961cc68 1832:0f1081928d65
    19 
    19 
    20 # You should have received a copy of the GNU Lesser General Public
    20 # You should have received a copy of the GNU Lesser General Public
    21 # License along with this library; if not, write to the Free Software
    21 # License along with this library; if not, write to the Free Software
    22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    23 
    23 
    24 import Pyro.core as pyro
    24 
    25 from threading import Timer, Thread, Lock, Semaphore, Event
    25 from threading import Timer, Thread, Lock, Semaphore, Event
    26 import ctypes
    26 import ctypes
    27 import os
    27 import os
    28 import commands
    28 import commands
    29 import types
    29 import types
    30 import sys
    30 import sys
    31 import traceback
    31 import traceback
       
    32 from time import time
       
    33 
       
    34 import Pyro.core as pyro
       
    35 
    32 from targets.typemapping import LogLevelsDefault, LogLevelsCount, TypeTranslator, UnpackDebugBuffer
    36 from targets.typemapping import LogLevelsDefault, LogLevelsCount, TypeTranslator, UnpackDebugBuffer
    33 from time import time
       
    34 
    37 
    35 
    38 
    36 if os.name in ("nt", "ce"):
    39 if os.name in ("nt", "ce"):
    37     from _ctypes import LoadLibrary as dlopen
    40     from _ctypes import LoadLibrary as dlopen
    38     from _ctypes import FreeLibrary as dlclose
    41     from _ctypes import FreeLibrary as dlclose