diff options
Diffstat (limited to 'scudcloud-1.1/lib/resources.py')
-rw-r--r-- | scudcloud-1.1/lib/resources.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scudcloud-1.1/lib/resources.py b/scudcloud-1.1/lib/resources.py new file mode 100644 index 0000000..f9835d8 --- /dev/null +++ b/scudcloud-1.1/lib/resources.py @@ -0,0 +1,19 @@ +import os, re + +class Resources: + + APP_NAME = "ScudCloud Slack_SSB" + SIGNIN_URL = "https://slack.com/signin" + MAINPAGE_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/?$') + MESSAGES_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/messages/.*') + SSO_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/sso/saml/start$') + SERVICES_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/services/.*') + + SPELL_DICT_PATH = "/usr/share/hunspell/" + SPELL_LIMIT = 6 + + # It's initialized in /scudcloud script + INSTALL_DIR = None + + def get_path(filename): + return os.path.join(Resources.INSTALL_DIR, 'resources', filename) |