modbus/modbus.py
branchsvghmi
changeset 3239 fe819b4c62c0
parent 2736 a81b72ef156c
child 3733 d1acf20e8e7c
--- a/modbus/modbus.py	Thu Apr 15 09:15:23 2021 +0200
+++ b/modbus/modbus.py	Wed May 12 11:38:00 2021 +0200
@@ -32,9 +32,7 @@
 from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_MEMORY
 import util.paths as paths
 
-base_folder = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]
-base_folder = os.path.join(base_folder, "..")
-ModbusPath = os.path.join(base_folder, "Modbus")
+ModbusPath = paths.ThirdPartyPath("Modbus")
 
 
 #