From 04c866b60b358aeb4e48b3c02d6224b9ecc7db15 Mon Sep 17 00:00:00 2001 From: Dawit Abate Date: Wed, 2 Sep 2020 05:48:25 +0300 Subject: [PATCH] Python2 compatibility (changed scandir to listdir) --- src/freecad_to_gazebo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freecad_to_gazebo/__init__.py b/src/freecad_to_gazebo/__init__.py index 9084c1c..b89fbb6 100644 --- a/src/freecad_to_gazebo/__init__.py +++ b/src/freecad_to_gazebo/__init__.py @@ -14,7 +14,7 @@ else: raise Exception("Platform not supported") # Extend sys.path to include freecad python libraries (including workbenches) -os.sys.path.extend(d.path for d in os.scandir(FREECAD_PATH)) +os.sys.path.extend(os.path.join(FREECAD_PATH, d) for d in os.scandir(FREECAD_PATH)) from freecad_to_gazebo.mesh_exporter import export from freecad_to_gazebo.model import *