Skip to content

Commit

Permalink
for user to development
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Jun 18, 2020
1 parent 172a418 commit f8104f6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ltp/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python
import logging
import os
import sys

if os.environ.get("LTP_DEBUG"):
LEVEL = logging.DEBUG
else:
LEVEL = logging.INFO

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.join(__file__, os.pardir))))
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', level=LEVEL)

from ltp.exe.commands import Command
from fire import Fire


def run():
Fire(Command)


if __name__ == "__main__":
run()

0 comments on commit f8104f6

Please sign in to comment.