Skip to content

Commit 28499a9

Browse files
committed
Package restructuring.
1 parent f8f7a4a commit 28499a9

10 files changed

Lines changed: 11 additions & 9 deletions

File tree

bin/motexml-from-xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/local/bin/python
2-
from motexml.xmltomlhex import main
2+
from motexml.tools.xmltomlhex import main
33
main()

bin/motexml-generate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/local/bin/python
2-
from motexml.gentypes import main
2+
from motexml.tools.gentypes import main
33
main()

bin/motexml-to-xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/local/bin/python
2-
from motexml.mlhextoxml import main
2+
from motexml.tools.mlhextoxml import main
33
main()

motexml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
__author__ = "Raido Pahtma"
44
__license__ = "MIT"
55

6-
version = "0.1.1"
6+
version = "0.1.2"

motexml/motexml.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""motexml.py: MoteXML."""
2+
from __future__ import absolute_import
3+
24
import re
3-
from . import mle
5+
from motexml import mle
46
from xml.etree import ElementTree
57
from xml.dom import minidom
68

motexml/tools/__init__.py

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def main():
1010
import argparse
1111
parser = argparse.ArgumentParser(description="print hex as XML")
1212
parser.add_argument("hexdata", default=None, nargs="+", help="Input data")
13-
parser.add_argument("--types", default="../../dt_types.txt", help="dt_types text file")
13+
parser.add_argument("--types", default="dt_types.txt", help="dt_types text file")
1414
args = parser.parse_args()
1515

1616
hexdata = "".join(args.hexdata)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def main():
1010
import argparse
1111
parser = argparse.ArgumentParser(description="print hex as XML")
1212
parser.add_argument("filename", default=None, help="Input file name")
13-
parser.add_argument("--types", default="../../dt_types.txt", help="dt_types text file")
13+
parser.add_argument("--types", default="dt_types.txt", help="dt_types text file")
1414
args = parser.parse_args()
1515

1616
trans = motexml.MoteXMLTranslator(args.types)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Warpper around shared library for python.
44
"""
55

6-
from setuptools import setup
6+
from setuptools import setup, find_packages
77
from os.path import join as pjoin
88

99
import motexml
@@ -19,7 +19,7 @@
1919
author_email='raido.pahtma@ttu.ee',
2020
license='MIT',
2121
platforms=['any'],
22-
packages=['motexml'],
22+
packages=find_packages(),
2323
install_requires=["lxml"],
2424
test_suite='nose.collector',
2525
tests_require=['nose'],

0 commit comments

Comments
 (0)