aboutsummaryrefslogtreecommitdiffstats
path: root/scudcloud-1.0/lib/resources.py
blob: cb93d913bd8d53a6da150579281413f832d9cf05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os, re

class Resources:

    APP_NAME = "scudcloud"
    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)