change relative
This commit is contained in:
parent
efb60782e9
commit
f4075b7bb5
6
src/main.py
Normal file
6
src/main.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from tww.tokenizer import parse_args, setup_logging_level, main
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
args = parse_args()
|
||||||
|
setup_logging_level(args.debug)
|
||||||
|
main(args)
|
@ -5,7 +5,7 @@ import os
|
|||||||
|
|
||||||
from fuzzywuzzy import fuzz
|
from fuzzywuzzy import fuzz
|
||||||
|
|
||||||
from tww import basepath
|
from tww.tww import basepath
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
|
@ -2,16 +2,17 @@ import argparse
|
|||||||
import json
|
import json
|
||||||
import locale
|
import locale
|
||||||
import re
|
import re
|
||||||
|
import logging
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from pygments import highlight, lexers, formatters
|
from pygments import highlight, lexers, formatters
|
||||||
from scalpl import Cut
|
from scalpl import Cut
|
||||||
|
|
||||||
from localization import setlocale, resolve_locale
|
from tww.localization import setlocale, resolve_locale
|
||||||
from tww import ISO_FORMAT, time_to_emoji, time_ago, workday_diff, workhours_diff, td_remainders, td_totals, td_iso8601
|
from tww.tww import ISO_FORMAT, time_to_emoji, time_ago, workday_diff, workhours_diff, td_remainders, td_totals, td_iso8601
|
||||||
from tww import resolve_timezone, dateparser_parse_dt, get_utcnow, get_s_since_epoch, get_ms_since_epoch, \
|
from tww.tww import resolve_timezone, dateparser_parse_dt, get_utcnow, get_s_since_epoch, get_ms_since_epoch, \
|
||||||
dt_tz_translation, get_local_now, query_to_format_result
|
dt_tz_translation, get_local_now, query_to_format_result
|
||||||
from common import logger
|
from tww.common import logger
|
||||||
|
|
||||||
custom_locale = resolve_locale()
|
custom_locale = resolve_locale()
|
||||||
|
|
||||||
@ -329,9 +330,3 @@ def main(args):
|
|||||||
if args.full:
|
if args.full:
|
||||||
pretty_print_dict(result)
|
pretty_print_dict(result)
|
||||||
show_magic_results(result, args)
|
show_magic_results(result, args)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
args = parse_args()
|
|
||||||
setup_logging_level(args.debug)
|
|
||||||
main(args)
|
|
||||||
|
@ -29,7 +29,7 @@ from pytz.exceptions import UnknownTimeZoneError
|
|||||||
from timezonefinder import TimezoneFinder
|
from timezonefinder import TimezoneFinder
|
||||||
from word2number import w2n
|
from word2number import w2n
|
||||||
|
|
||||||
from common import logger
|
from tww.common import logger
|
||||||
|
|
||||||
FUZZ_THRESHOLD = 70
|
FUZZ_THRESHOLD = 70
|
||||||
ISO_FORMAT = '%Y-%m-%dT%H:%M:%S%z'
|
ISO_FORMAT = '%Y-%m-%dT%H:%M:%S%z'
|
||||||
|
Loading…
Reference in New Issue
Block a user