storborg / pyweaving

Python Weaving Tools
Other
17 stars 10 forks source link

can't get the python example to work #5

Closed Neon22 closed 2 years ago

Neon22 commented 3 years ago

Probably me or a python 3 issue with way the __init__ work is done.

However I can't get this to work in python code (commandline is working)

from pyweaving import WIFReader

checked the dir() as well - nothing there. Just cant work out how to get the rest of the internal code. :(

E.g.

import pyweaving as pw
dir(pw)
['Color', 'Draft', 'DraftError', 'Shaft', 'Treadle', 'WarpThread', 'WeftThread', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__',
 'absolute_import', 'datetime', 'deepcopy', 'defaultdict', 'division', 'json', 'print_function', 'unicode_literals']
Neon22 commented 2 years ago

OK. Going to reorganize so the init file pulls in the components and presents as a whole. Still want the Script to work but also allow easy import pyweaving as pw (for example) see Issue #4 Will present with python 3 mods for release.

Neon22 commented 2 years ago

now reorganised into new init structure and python 3.8+