home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.3)
-
- import sys
- import os
- import os.path as os
- import shutil
- import re
- ROOT_PATH = '%s/' % os.path.split(os.path.split(os.path.abspath(__file__))[0])[0]
- DEFAULTS_PATH = '%s/Defaults/' % ROOT_PATH
- ENGINE_PATH = '%s/Engine/' % ROOT_PATH
- BIN_PATH = '%s/bin/' % ROOT_PATH
- HOMELIB_PATH = os.path.expanduser('~/Library/')
- CONF_PATH = '%sApplication Support/JunkMatcher/' % HOMELIB_PATH
- TMP_PATH = '%stemp/' % CONF_PATH
- if os.path.exists(CONF_PATH):
- for f in os.listdir(DEFAULTS_PATH):
- if not os.path.exists('%s%s' % (CONF_PATH, f)):
- shutil.copy2('%s%s' % (DEFAULTS_PATH, f), '%s%s' % (CONF_PATH, f))
- continue
-
- else:
- shutil.copytree(DEFAULTS_PATH, CONF_PATH)
- if not os.path.exists(TMP_PATH):
- os.makedirs(TMP_PATH)
-
- pythonSitePath = '%slib/python2.3/site-packages' % ROOT_PATH
- sys.path[0:0] = [
- ENGINE_PATH,
- pythonSitePath,
- '%s/PyObjC' % pythonSitePath,
- '%s/PyObjC/Foundation' % pythonSitePath]
- httpPat = re.compile('(?i)https?:/?/?[^"\\\'<> \\t\\n\\r\\f\\v]+')
- mpPat = re.compile('\\(\\?#[^)]+\\)')
- JM_ENGINE_VER = '1.5.5'
- DEFAULT_FILE_ENCODING = 'utf8'
- DEFAULT_MX_TIMEOUT = 10
- SAFE_SITE_SIZE_RATIO = 0.97999999999999998
-
- class JMExceptionMetaPattern(Exception):
-
- def __init__(self, info):
- self.info = info
-
-
-