##// END OF EJS Templates
fixed the backup script path problems
Marcin Kuzminski -
r27:8f29ddc4 default
parent child Browse files
Show More
@@ -10,11 +10,12 b' logging.basicConfig(level = logging.DEBU'
10 class BackupManager(object):
10 class BackupManager(object):
11 def __init__(self):
11 def __init__(self):
12
12
13 cur_dir = os.path.realpath(__file__)
13 dn = os.path.dirname
14 dn = os.path.dirname
14 self.backup_file_path = os.path.join(dn(dn(dn(__file__))), 'data')
15 self.backup_file_path = os.path.join(dn(dn(dn(cur_dir))), 'data')
15 cfg = config.config()
16 cfg = config.config()
16 try:
17 try:
17 cfg.read(os.path.join(dn(dn(dn(__file__))), 'hgwebdir.config'))
18 cfg.read(os.path.join(dn(dn(dn(cur_dir))), 'hgwebdir.config'))
18 except IOError:
19 except IOError:
19 logging.error('Could not read hgwebdir.config')
20 logging.error('Could not read hgwebdir.config')
20 sys.exit()
21 sys.exit()
General Comments 0
You need to be logged in to leave comments. Login now