From 8780ab5c41be3cddb5eaf68251c58e5681714ace Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 16 Apr 2011 00:54:02 +0200 Subject: [PATCH] Fixes for Ti Desktop --- couchpotato/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/cli.py b/couchpotato/cli.py index e3fb946d..cd7373bc 100644 --- a/couchpotato/cli.py +++ b/couchpotato/cli.py @@ -14,7 +14,7 @@ def cmd_couchpotato(base_path, args): '''Commandline entry point.''' # Options - parser = ArgumentParser() + parser = ArgumentParser(prog = 'CouchPotato.py') parser.add_argument('-s', '--datadir', default = os.path.join(base_path, '_data'), dest = 'data_dir', help = 'Absolute or ~/ path, where settings/logs/database data is saved (default ./_data)') parser.add_argument('-t', '--test', '--debug', action = 'store_true', @@ -97,7 +97,7 @@ def cmd_couchpotato(base_path, args): # Load migrations from migrate.versioning.api import version_control, db_version, version, upgrade db = Env.get('db_path') - repo = os.path.join('couchpotato', 'core', 'migration') + repo = os.path.join(base_path, 'couchpotato', 'core', 'migration') logging.getLogger('migrate').setLevel(logging.WARNING) # Disable logging for migration latest_db_version = version(repo)