diff options
author | Philipp Klaus <philipp.klaus@gmail.com> | 2015-02-18 15:35:01 +0100 |
---|---|---|
committer | Philipp Klaus <philipp.klaus@gmail.com> | 2015-02-18 15:44:57 +0100 |
commit | 7ace94b0230e9acd85097c1812840250d551015c (patch) | |
tree | f6160399877b1b4f8ba022ce799346362df082ea /gerber | |
parent | 0e98a3f0d451795b302a299fe801eb7ece8f735f (diff) | |
download | gerbonara-7ace94b0230e9acd85097c1812840250d551015c.tar.gz gerbonara-7ace94b0230e9acd85097c1812840250d551015c.tar.bz2 gerbonara-7ace94b0230e9acd85097c1812840250d551015c.zip |
Make gerber.render a package & fix more relative import statements
Diffstat (limited to 'gerber')
-rw-r--r-- | gerber/__main__.py | 4 | ||||
-rw-r--r-- | gerber/tests/test_cam.py | 2 | ||||
-rw-r--r-- | gerber/tests/test_common.py | 2 | ||||
-rw-r--r-- | gerber/tests/test_primitives.py | 2 | ||||
-rw-r--r-- | gerber/tests/test_rs274x.py | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/gerber/__main__.py b/gerber/__main__.py index 6e25bf3..599c161 100644 --- a/gerber/__main__.py +++ b/gerber/__main__.py @@ -16,9 +16,9 @@ # the License. if __name__ == '__main__': - from .common import read - from .render import GerberSvgContext import sys + from gerber.common import read + from gerber.render import GerberSvgContext if len(sys.argv) < 2: print >> sys.stderr, "Usage: python -m gerber <filename> <filename>..." diff --git a/gerber/tests/test_cam.py b/gerber/tests/test_cam.py index 6296cc9..00a8285 100644 --- a/gerber/tests/test_cam.py +++ b/gerber/tests/test_cam.py @@ -4,7 +4,7 @@ # Author: Hamilton Kibbe <ham@hamiltonkib.be> from ..cam import CamFile, FileSettings -from tests import * +from .tests import * def test_filesettings_defaults(): diff --git a/gerber/tests/test_common.py b/gerber/tests/test_common.py index bf9760a..76e3991 100644 --- a/gerber/tests/test_common.py +++ b/gerber/tests/test_common.py @@ -5,7 +5,7 @@ from ..common import read from ..excellon import ExcellonFile from ..rs274x import GerberFile -from tests import * +from .tests import * import os diff --git a/gerber/tests/test_primitives.py b/gerber/tests/test_primitives.py index cada6d4..dab0225 100644 --- a/gerber/tests/test_primitives.py +++ b/gerber/tests/test_primitives.py @@ -3,7 +3,7 @@ # Author: Hamilton Kibbe <ham@hamiltonkib.be> from ..primitives import * -from tests import * +from .tests import * def test_primitive_implementation_warning(): diff --git a/gerber/tests/test_rs274x.py b/gerber/tests/test_rs274x.py index 27f6f49..5185fa1 100644 --- a/gerber/tests/test_rs274x.py +++ b/gerber/tests/test_rs274x.py @@ -5,7 +5,7 @@ import os from ..rs274x import read, GerberFile -from tests import * +from .tests import * TOP_COPPER_FILE = os.path.join(os.path.dirname(__file__), |