Show More
@@ -19,10 +19,8 b'' | |||||
19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ |
|
19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ | |
20 |
|
20 | |||
21 | import os |
|
21 | import os | |
22 | import platform |
|
|||
23 | import datetime |
|
22 | import datetime | |
24 |
|
23 | import collections | ||
25 | from collections import OrderedDict |
|
|||
26 |
|
24 | |||
27 | now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f") |
|
25 | now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f") | |
28 |
|
26 | |||
@@ -31,7 +29,7 b" print(f'{now} Starting RhodeCode imports" | |||||
31 | VERSION = tuple(open(os.path.join( |
|
29 | VERSION = tuple(open(os.path.join( | |
32 | os.path.dirname(__file__), 'VERSION')).read().split('.')) |
|
30 | os.path.dirname(__file__), 'VERSION')).read().split('.')) | |
33 |
|
31 | |||
34 | BACKENDS = OrderedDict() |
|
32 | BACKENDS = collections.OrderedDict() | |
35 |
|
33 | |||
36 | BACKENDS['hg'] = 'Mercurial repository' |
|
34 | BACKENDS['hg'] = 'Mercurial repository' | |
37 | BACKENDS['git'] = 'Git repository' |
|
35 | BACKENDS['git'] = 'Git repository' | |
@@ -53,12 +51,9 b' EXTENSIONS = {}' | |||||
53 |
|
51 | |||
54 | __version__ = ('.'.join((str(each) for each in VERSION[:3]))) |
|
52 | __version__ = ('.'.join((str(each) for each in VERSION[:3]))) | |
55 | __dbversion__ = 114 # defines current db version for migrations |
|
53 | __dbversion__ = 114 # defines current db version for migrations | |
56 | __platform__ = platform.system() |
|
|||
57 | __license__ = 'AGPLv3, and Commercial License' |
|
54 | __license__ = 'AGPLv3, and Commercial License' | |
58 | __author__ = 'RhodeCode GmbH' |
|
55 | __author__ = 'RhodeCode GmbH' | |
59 | __url__ = 'https://code.rhodecode.com' |
|
56 | __url__ = 'https://code.rhodecode.com' | |
60 |
|
57 | |||
61 | is_windows = __platform__ in ['Windows'] |
|
|||
62 | is_unix = not is_windows |
|
|||
63 | is_test = False |
|
58 | is_test = False | |
64 | disable_error_handler = False |
|
59 | disable_error_handler = False |
General Comments 0
You need to be logged in to leave comments.
Login now