2019-09-15 20:42:11 +02:00
|
|
|
from pathlib import Path
|
2021-09-17 12:04:33 +02:00
|
|
|
import pytz
|
2022-07-26 20:02:57 +02:00
|
|
|
|
2020-05-18 20:42:34 +02:00
|
|
|
# default is 'primary', if you are using a separate calendar for your course schedule,
|
|
|
|
# your calendarId (which you can find by going to your Google Calendar settings, selecting
|
|
|
|
# the relevant calendar and scrolling down to Calendar ID) probably looks like
|
|
|
|
# xxxxxxxxxxxxxxxxxxxxxxxxxg@group.calendar.google.com
|
|
|
|
# example:
|
|
|
|
# USERCALENDARID = 'xxxxxxxxxxxxxxxxxxxxxxxxxg@group.calendar.google.com'
|
|
|
|
USERCALENDARID = 'primary'
|
2019-09-15 20:42:11 +02:00
|
|
|
CURRENT_COURSE_SYMLINK = Path('~/current_course').expanduser()
|
|
|
|
CURRENT_COURSE_ROOT = CURRENT_COURSE_SYMLINK.resolve()
|
|
|
|
CURRENT_COURSE_WATCH_FILE = Path('/tmp/current_course').resolve()
|
2022-07-26 20:02:57 +02:00
|
|
|
ROOT = Path('~/uni/semester-6').expanduser()
|
2021-09-16 13:27:58 +02:00
|
|
|
DATE_FORMAT = '%a %d %b %Y'
|
2021-09-16 12:05:44 +02:00
|
|
|
LOCALE = "de_DE.utf8"
|
2021-09-16 12:34:32 +02:00
|
|
|
COURSE_IGNORE_FILE = '.courseignore'
|
2021-09-17 10:32:28 +02:00
|
|
|
COURSE_INFO_FILE_NAME = 'info.yaml'
|
2021-09-16 15:27:35 +02:00
|
|
|
MAX_LEN = 40
|
2021-09-16 20:03:41 +02:00
|
|
|
LECTURE_START_MARKER = 'start lectures'
|
|
|
|
LECTURE_END_MARKER = 'end lectures'
|
2021-09-16 22:55:37 +02:00
|
|
|
DEFAULT_NEW_LECTURE_HEADER = r'\lecture[]{{{date}}}{{{title}}}'
|
2021-09-17 10:45:14 +02:00
|
|
|
DEFAULT_NEW_LECTURE_TITLE = 'Untitled'
|
2021-09-16 22:55:37 +02:00
|
|
|
DEFAULT_LECTURE_SEARCH_REGEX = r'lecture.*({\d*})?{(.*?)}{(.*)}'
|
2021-09-17 09:32:41 +02:00
|
|
|
DEFAULT_IMPORT_INDENTATION = 4
|
2021-10-10 15:45:24 +02:00
|
|
|
FALLBACK_COURSE_INFO_FILE = Path(__file__).parent.resolve() / 'fallback.yaml'
|
2021-09-17 12:04:33 +02:00
|
|
|
TIMEZONE = pytz.timezone('CET')
|
2021-09-17 12:20:08 +02:00
|
|
|
SCHEDULER_DELAY = 60
|
2021-10-10 19:24:06 +02:00
|
|
|
DEFAULT_LATEX_COUNTER_AUX_FILE_EXTENSION = '.cnt'
|
2022-07-26 20:02:57 +02:00
|
|
|
TERMINAL = 'i3-sensible-terminal'
|
|
|
|
EDITOR = 'vim'
|
2021-10-10 20:45:47 +02:00
|
|
|
|
|
|
|
NEW_EXERCISE_SHEET_HEADER = '\n'.join([
|
|
|
|
r"%! TEX root = ./*.tex",
|
|
|
|
r"\documentclass[{language}]{{mkessler-sheet}}",
|
|
|
|
"",
|
|
|
|
r"\usepackage{{babel}}",
|
|
|
|
r"\usepackage{{mkessler-math}}",
|
|
|
|
r"\usepackage{{mkessler-enumerate}}",
|
|
|
|
r"\usepackage{{mkessler-figures}}",
|
|
|
|
"",
|
|
|
|
r"\author{{{author}}}",
|
|
|
|
r"\course{{{course}}}",
|
|
|
|
r"\sheetnumber{{{number}}}",
|
|
|
|
"",
|
|
|
|
r"\begin{{document}}",
|
|
|
|
r"\maketitle",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
r"\end{{document}}"
|
|
|
|
])
|