Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main(args=None): # needed for console script
"""Packge entry point."""
if __package__ is None:
import os.path
path = os.path.dirname(os.path.dirname(__file__))
sys.path[0:0] = [path]
from tokendito.tool import cli
try:
return cli(args)
except KeyboardInterrupt:
print('\nInterrupted')
sys.exit(1)
def main(args=None): # needed for console script
"""Packge entry point."""
if __package__ is None:
import os.path
path = os.path.dirname(os.path.dirname(__file__))
sys.path[0:0] = [path]
from tokendito.tool import cli
return cli(args)