PLCControler.py
changeset 1680 6db967480b7d
parent 1619 163d3a883575
child 1686 85fdcc04da25
--- a/PLCControler.py	Wed Apr 12 10:20:01 2017 +0000
+++ b/PLCControler.py	Thu Apr 20 13:01:45 2017 +0300
@@ -5,6 +5,7 @@
 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
 #
 # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
+# Copyright (C) 2017: Andrey Skvortsov
 #
 # See COPYING file for copyrights details.
 #
@@ -28,6 +29,7 @@
 from copy import deepcopy
 import os,sys,re
 import datetime
+import util.paths as paths
 from time import localtime
 from collections import OrderedDict, namedtuple
 
@@ -88,7 +90,7 @@
                    LOCATION_VAR_OUTPUT,
                    LOCATION_VAR_MEMORY] = range(6)
 
-ScriptDirectory = os.path.split(os.path.realpath(__file__))[0]
+ScriptDirectory = paths.AbsDir(__file__)
 
 def GetUneditableNames():
     _ = lambda x:x