# HG changeset patch
# User Edouard Tisserant <edouard@beremiz.fr>
# Date 1720518289 -7200
# Node ID 466be4f52cb9de8d509c866e6441d323bdfbf861
# Parent  69d161fc2e0812bcc4b92efce4f25c572350d384
Extensions: add optional arguments to ThirdPartyPath

ThirdPartyPath("name", "path1", "path2") will resolve by default into "../name/path1/path2"

diff -r 69d161fc2e08 -r 466be4f52cb9 util/paths.py
--- a/util/paths.py	Thu Jul 04 11:24:04 2024 +0200
+++ b/util/paths.py	Tue Jul 09 11:44:49 2024 +0200
@@ -46,11 +46,11 @@
         path = os.path.dirname(path)
     return path
 
-def ThirdPartyPath(name):
+def ThirdPartyPath(name, *suffixes):
     """
     Return folder where to find sibling projects like Modbus, CanFestival, BACnet
     """
-    return os.path.join(AbsParentDir(__file__, 2), name)
+    return os.path.join(AbsParentDir(__file__, 2), name, *suffixes)
 
 def Bpath(*names):
     """