mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-01-21 23:38:58 +00:00
move scripts
This commit is contained in:
parent
2af3eeda5b
commit
98dd00905a
7
setup.py
7
setup.py
@ -32,5 +32,10 @@ setuptools.setup(
|
|||||||
'pytz',
|
'pytz',
|
||||||
'PyYAML>=3.13'
|
'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",
|
||||||
|
]
|
||||||
|
}
|
||||||
)
|
)
|
@ -5,7 +5,7 @@ import logging.config
|
|||||||
import yaml
|
import yaml
|
||||||
from pytz import utc
|
from pytz import utc
|
||||||
|
|
||||||
from sync_ics2gcal import GoogleCalendar, GoogleCalendarService
|
from . import GoogleCalendar, GoogleCalendarService
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
@ -4,14 +4,13 @@ import dateutil.parser
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
import logging.config
|
import logging.config
|
||||||
from sync_ics2gcal import (
|
from . import (
|
||||||
CalendarConverter,
|
CalendarConverter,
|
||||||
GoogleCalendarService,
|
GoogleCalendarService,
|
||||||
GoogleCalendar,
|
GoogleCalendar,
|
||||||
CalendarSync
|
CalendarSync
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def load_config():
|
def load_config():
|
||||||
with open('config.yml', 'r', encoding='utf-8') as f:
|
with open('config.yml', 'r', encoding='utf-8') as f:
|
||||||
result = yaml.safe_load(f)
|
result = yaml.safe_load(f)
|
Loading…
x
Reference in New Issue
Block a user