Skip to content

import_scad() imports illegal python identifiers as module names from filenames #173

@jeff-dh

Description

@jeff-dh
>>> mcad = solid.import_scad("MCAD")
>>> dir(mcad)
['2Dshapes', '3d_triangle', '__class__', '__delattr__', [...] 'units', 'unregular_shapes', 'utilities']
>>> mcad.2Dshapes
  File "<stdin>", line 1
    mcad.2Dshapes
         ^
SyntaxError: invalid syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions