Mercurial > kallithea
changeset 27:8f29ddc4c147
fixed the backup script path problems
author | Marcin Kuzminski |
---|---|
date | Mon, 01 Mar 2010 11:29:40 +0100 |
parents | b3307ca60bfb |
children | fd0c6fa2df82 |
files | pylons_app/lib/backup_manager.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/lib/backup_manager.py Sun Feb 28 17:18:09 2010 +0100 +++ b/pylons_app/lib/backup_manager.py Mon Mar 01 11:29:40 2010 +0100 @@ -10,11 +10,12 @@ class BackupManager(object): def __init__(self): + cur_dir = os.path.realpath(__file__) dn = os.path.dirname - self.backup_file_path = os.path.join(dn(dn(dn(__file__))), 'data') + self.backup_file_path = os.path.join(dn(dn(dn(cur_dir))), 'data') cfg = config.config() try: - cfg.read(os.path.join(dn(dn(dn(__file__))), 'hgwebdir.config')) + cfg.read(os.path.join(dn(dn(dn(cur_dir))), 'hgwebdir.config')) except IOError: logging.error('Could not read hgwebdir.config') sys.exit()