Python2 compatibility (changed scandir to listdir)

This commit is contained in:
Dawit Abate 2020-09-02 05:48:25 +03:00 committed by GitHub
parent dd556e1a70
commit 04c866b60b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 *