Closed yuvadm closed 3 years ago
@mkaz seems like this package is compiled without a relative path to modules in the main package. Could we please help in fixing this. There are developers like us who prefer to import and use this in scripts and not just from command line. Appreciate the work you are doing and the open source contributions.
[Edit] - I think adding this in __init__.py
should fix it.
import sys
from os.path import dirname
sys.path.append(dirname(__file__))
from termgraph import *
Ok, I updated the __init__.py
code with the import and deployed as v0.5.3
Can you confirm this fixes it for you? Thanks!
Yes this worked. Thanks for the fix and version update.
The new API module as defined in #27 and #75 cannot be imported: