Skip to content

Commit

Permalink
Add import in __init__.py to enable API
Browse files Browse the repository at this point in the history
Adds an import to the __init__.py to enable importing via API

Props to @krazykoder

Fixes #86
  • Loading branch information
mkaz committed Sep 4, 2021
1 parent f0657a8 commit 4aa3b67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name='termgraph',
packages=['termgraph'],
entry_points={'console_scripts': ['termgraph=termgraph.termgraph:main']},
version='0.5.2',
version='0.5.3',
author="mkaz",
author_email="[email protected]",
url='https://github.com/mkaz/termgraph',
Expand Down
4 changes: 4 additions & 0 deletions termgraph/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import sys
from os.path import dirname
sys.path.append(dirname(__file__))
from termgraph import *
2 changes: 1 addition & 1 deletion termgraph/termgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
import re

VERSION = "0.5.2"
VERSION = "0.5.3"

init()

Expand Down

0 comments on commit 4aa3b67

Please sign in to comment.