Skip to content

Commit 54b02bd

Browse files
Update src/compas/rpc/dispatcher.py
Co-authored-by: Gonzalo Casas <[email protected]>
1 parent df85f46 commit 54b02bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compas/rpc/dispatcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def _dispatch(self, name, args):
8989
odict = {"data": None, "error": None, "profile": None}
9090

9191
if len(args) > 1:
92-
sys.path.insert(0, args[1])
92+
if args[1] not in sys.path:
93+
sys.path.insert(0, args[1])
9394

9495
parts = name.split(".")
9596

0 commit comments

Comments
 (0)