We should use os.path.join to concatenate directories.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 21 Aug 2011 03:26:45 +0000 (22:26 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 21 Aug 2011 03:26:45 +0000 (22:26 -0500)
mediagoblin/gmg_commands/import_export.py

index 812d14862bfa957a222c57cd1b7b0c34319c068c..367924a5c372290469575a68f6d8c80f67349180 100644 (file)
@@ -95,7 +95,6 @@ def env_import(args):
     if not args.cache_path:
         args.cache_path = tempfile.mkdtemp()
 
-    # args.cache_path += 'mediagoblin-data'
     setup_global_and_app_config(args.conf_file)
 
     # Creates mg_globals.public_store and mg_globals.queue_store
@@ -111,7 +110,8 @@ def env_import(args):
 
     tf.extractall(args.cache_path)
 
-    args.cache_path += 'mediagoblin-data'
+    args.cache_path = os.path.join(
+        args.cache_path, 'mediagoblin-data')
     args = _setup_paths(args)
 
     # Import database from extracted data