|
9 | 9 | CURRENT_DIR = '.' |
10 | 10 | LANG_PATH = join(CURRENT_DIR, 'langs') |
11 | 11 | THEME_PATH = join(CURRENT_DIR, 'themes') |
12 | | - |
13 | | -# Import cutils modules |
14 | | -try: |
15 | | - import cutils.ccom |
16 | | - import cutils.clic |
17 | | - import cutils.cver |
18 | | - |
19 | | - # Update version |
20 | | - cutils.cver.version(CURRENT_DIR, sub_max=9, rev_max=99, build_max=999) |
21 | | - # Collect all special comments |
22 | | - cutils.ccom.collect(CURRENT_DIR) |
23 | | - # Update header comments |
24 | | - cutils.clic.header(CURRENT_DIR) |
25 | | -except ImportError: |
26 | | - print('[WARNING] cutils modules are missing: ' |
27 | | - 'install it from http://www.cutils.org') |
| 12 | +LOCAL_PATH = join('~', '.config', 'sublime-text-3', 'Packages', 'User') |
28 | 13 |
|
29 | 14 | # Import tmtools modules |
30 | 15 | try: |
|
45 | 30 | py_details = {'name' : 'Python3', |
46 | 31 | 'path' : LANG_PATH, |
47 | 32 | 'scope': 'python.3', |
48 | | - 'comments' : {'lines': '#'}, |
| 33 | + 'comments' : {'line_comments': ('#',)}, |
49 | 34 | 'test_name': 'Python3_TEST', |
50 | | - 'test_path': '~/.config/sublime-text-3/Packages/User/Python3_TEST'} |
| 35 | + 'test_path': join(LOCAL_PATH, 'Python3_TEST')} |
51 | 36 |
|
52 | 37 | cy_details = {'name' : 'Cython', |
53 | 38 | 'path' : LANG_PATH, |
54 | 39 | 'scope': 'cython', |
55 | | - 'comments' : {'lines': '#'}, |
| 40 | + 'comments' : {'line_comments': ('#',)}, |
56 | 41 | 'test_name': 'Cython_TEST', |
57 | | - 'test_path': '~/.config/sublime-text-3/Packages/User/Cython_TEST'} |
| 42 | + 'test_path': join(LOCAL_PATH, 'Cython_TEST')} |
58 | 43 |
|
59 | 44 | gl_details = {'name': 'Gloom', |
60 | 45 | 'path': THEME_PATH, |
61 | 46 | 'test_name': 'Gloom_TEST', |
62 | | - 'test_path': '~/.config/sublime-text-3/Packages/User/Gloom_TEST'} |
| 47 | + 'test_path': join(LOCAL_PATH, 'Gloom_TEST')} |
63 | 48 |
|
64 | 49 | # NOTE: Old path to theme files => DO NOT SUPPORT IT: |
65 | 50 | # '~/Library/Application Support/Sublime Text 3/Packages/Color Scheme - Default' |
|
0 commit comments