1
0
mirror of https://github.com/b4tman/sync_ics2gcal synced 2025-01-21 23:38:58 +00:00

move scripts

This commit is contained in:
Dmitry Belyaev 2020-02-19 13:15:20 +03:00
parent 2af3eeda5b
commit 98dd00905a
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
3 changed files with 162 additions and 158 deletions

View File

@ -32,5 +32,10 @@ setuptools.setup(
'pytz',
'PyYAML>=3.13'
],
scripts=['manage-calendars.py', 'sync-calendar.py']
entry_points={
"console_scripts": [
"sync-ics2gcal = sync_ics2gcal.sync_calendar:main",
"manage-ics2gcal = sync_ics2gcal.manage_calendars:main",
]
}
)

View File

@ -5,7 +5,7 @@ import logging.config
import yaml
from pytz import utc
from sync_ics2gcal import GoogleCalendar, GoogleCalendarService
from . import GoogleCalendar, GoogleCalendarService
def parse_args():

View File

@ -4,14 +4,13 @@ import dateutil.parser
import datetime
import logging
import logging.config
from sync_ics2gcal import (
from . import (
CalendarConverter,
GoogleCalendarService,
GoogleCalendar,
CalendarSync
)
def load_config():
with open('config.yml', 'r', encoding='utf-8') as f:
result = yaml.safe_load(f)