Make gerber.render a package & fix more relative import statements
This commit is contained in:
parent
0e98a3f0d4
commit
7ace94b023
6 changed files with 7 additions and 7 deletions
|
|
@ -16,9 +16,9 @@
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from .common import read
|
|
||||||
from .render import GerberSvgContext
|
|
||||||
import sys
|
import sys
|
||||||
|
from gerber.common import read
|
||||||
|
from gerber.render import GerberSvgContext
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print >> sys.stderr, "Usage: python -m gerber <filename> <filename>..."
|
print >> sys.stderr, "Usage: python -m gerber <filename> <filename>..."
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
# Author: Hamilton Kibbe <ham@hamiltonkib.be>
|
# Author: Hamilton Kibbe <ham@hamiltonkib.be>
|
||||||
|
|
||||||
from ..cam import CamFile, FileSettings
|
from ..cam import CamFile, FileSettings
|
||||||
from tests import *
|
from .tests import *
|
||||||
|
|
||||||
|
|
||||||
def test_filesettings_defaults():
|
def test_filesettings_defaults():
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
from ..common import read
|
from ..common import read
|
||||||
from ..excellon import ExcellonFile
|
from ..excellon import ExcellonFile
|
||||||
from ..rs274x import GerberFile
|
from ..rs274x import GerberFile
|
||||||
from tests import *
|
from .tests import *
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
# Author: Hamilton Kibbe <ham@hamiltonkib.be>
|
# Author: Hamilton Kibbe <ham@hamiltonkib.be>
|
||||||
from ..primitives import *
|
from ..primitives import *
|
||||||
from tests import *
|
from .tests import *
|
||||||
|
|
||||||
|
|
||||||
def test_primitive_implementation_warning():
|
def test_primitive_implementation_warning():
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from ..rs274x import read, GerberFile
|
from ..rs274x import read, GerberFile
|
||||||
from tests import *
|
from .tests import *
|
||||||
|
|
||||||
|
|
||||||
TOP_COPPER_FILE = os.path.join(os.path.dirname(__file__),
|
TOP_COPPER_FILE = os.path.join(os.path.dirname(__file__),
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -29,7 +29,7 @@ METADATA = {
|
||||||
'license': "Apache",
|
'license': "Apache",
|
||||||
'keywords': "gerber tools",
|
'keywords': "gerber tools",
|
||||||
'url': "http://github.com/curtacircuitos/gerber-tools",
|
'url': "http://github.com/curtacircuitos/gerber-tools",
|
||||||
'packages': ['gerber'],
|
'packages': ['gerber', 'gerber.render'],
|
||||||
'long_description': read('README.md'),
|
'long_description': read('README.md'),
|
||||||
'classifiers':[
|
'classifiers':[
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue