Show More
@@ -10,11 +10,12 b' logging.basicConfig(level = logging.DEBU' | |||
|
10 | 10 | class BackupManager(object): |
|
11 | 11 | def __init__(self): |
|
12 | 12 | |
|
13 | cur_dir = os.path.realpath(__file__) | |
|
13 | 14 | dn = os.path.dirname |
|
14 |
self.backup_file_path = os.path.join(dn(dn(dn( |
|
|
15 | self.backup_file_path = os.path.join(dn(dn(dn(cur_dir))), 'data') | |
|
15 | 16 | cfg = config.config() |
|
16 | 17 | try: |
|
17 |
cfg.read(os.path.join(dn(dn(dn( |
|
|
18 | cfg.read(os.path.join(dn(dn(dn(cur_dir))), 'hgwebdir.config')) | |
|
18 | 19 | except IOError: |
|
19 | 20 | logging.error('Could not read hgwebdir.config') |
|
20 | 21 | sys.exit() |
General Comments 0
You need to be logged in to leave comments.
Login now