modbus/modbus.py
branchsvghmi
changeset 3242 f037e901a17c
parent 2736 a81b72ef156c
child 3733 d1acf20e8e7c
--- a/modbus/modbus.py	Tue May 18 09:22:17 2021 +0200
+++ b/modbus/modbus.py	Tue May 18 09:28:44 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")
 
 
 #