util/paths.py
branchsvghmi
changeset 3242 f037e901a17c
parent 2736 a81b72ef156c
child 3501 fa291393aac7
--- a/util/paths.py	Tue May 18 09:22:17 2021 +0200
+++ b/util/paths.py	Tue May 18 09:28:44 2021 +0200
@@ -28,7 +28,6 @@
 import sys
 from builtins import str as text
 
-
 def AbsFile(file):
     if isinstance(file, str):
         file = text(file, sys.getfilesystemencoding())
@@ -49,3 +48,10 @@
     for dummy in range(0, level):
         path = os.path.dirname(path)
     return path
+
+def ThirdPartyPath(name):
+    """
+    Return folder where to find sibling projects like Modbus, CanFestival, BACnet
+    """
+    return os.path.join(AbsParentDir(__file__, 2), name)
+