blob: f9835d8fbaded18ed4cbc34facb0c66156ae8c64 (
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 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)
|