Closed wzbernstein closed 5 years ago
I can second this. After removing the 'core' directory in the import the demos are running fine for me
I recently refactored the pythonocc package. Previously, willing to import for instance the gp package, you had to:
import OCC.gp
(1)
now (current master branch):
import OCC.Core.gp
(2)
However, to ensure backward compatibility, (1) is still possible. But if you import gp using (1), there should be a deprecation warning emitted by python.
can be closed?
sure, you can close.
Based on your comment to my issue on pythonocc-core, I was expecting to see the import commands to be updated. Check this one out.. It still contains:
from OCC.Core.BRepTools import breptools_Read from OCC.Core.TopoDS import TopoDS_Shape from OCC.Core.BRep import BRep_Builder
After deleting the subdirectory core from the import commands, the demo apparently runs fine.
from OCC.BRepTools import breptools_Read from OCC.TopoDS import TopoDS_Shape from OCC..BRep import BRep_Builder
Can you comment? Thanks.