Skip to content

Commit ce797fd

Browse files
committed
concise package import
1 parent 7f1036a commit ce797fd

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can do `pip install -e .` locally in the root of this repo to enable develop
2020
The plugin needs to be imported in order to monkey-patch its method into CadQuery:
2121

2222
```python
23-
import assembly_mesh_plugin.plugin
23+
import assembly_mesh_plugin
2424
```
2525

2626
You can then tag faces in each of the assembly parts and create your assembly. To export the assembly to a mesh file, you do the following.
@@ -38,7 +38,7 @@ Below is a simple example.
3838

3939
```python
4040
import cadquery as cq
41-
import assembly_mesh_plugin.plugin
41+
import assembly_mesh_plugin
4242

4343
shell = cq.Workplane("XY").box(50, 50, 50)
4444
shell = shell.faces(">Z").workplane().rect(21, 21).cutThruAll()
@@ -63,7 +63,7 @@ If you want more control over the mesh generation and export, you can use the `g
6363

6464
```python
6565
import cadquery as cq
66-
import assembly_mesh_plugin.plugin
66+
import assembly_mesh_plugin
6767
import gmsh
6868

6969
shell = cq.Workplane("XY").box(50, 50, 50)

assembly_mesh_plugin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .plugin import *

tests/smoke_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import assembly_mesh_plugin.plugin
1+
import assembly_mesh_plugin
22
from tests.sample_assemblies import (
33
generate_nested_boxes,
44
generate_simple_nested_boxes,

tests/test_meshes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import gmsh
2-
import assembly_mesh_plugin.plugin
2+
import assembly_mesh_plugin
33
from tests.sample_assemblies import (
44
generate_nested_boxes,
55
generate_simple_nested_boxes,

0 commit comments

Comments
 (0)