aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/import_export.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-20 22:26:45 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-20 22:26:45 -0500
commit2db2211d96ec200471af675c55ae95c1b5f4ac0d (patch)
tree744ff7c68a182ec5214676c41dd74cafcc019f69 /mediagoblin/gmg_commands/import_export.py
parent6c6009ba65b2df22b27cb6b3d83ee8c220767316 (diff)
downloadmediagoblin-2db2211d96ec200471af675c55ae95c1b5f4ac0d.tar.lz
mediagoblin-2db2211d96ec200471af675c55ae95c1b5f4ac0d.tar.xz
mediagoblin-2db2211d96ec200471af675c55ae95c1b5f4ac0d.zip
We should use os.path.join to concatenate directories.
Diffstat (limited to 'mediagoblin/gmg_commands/import_export.py')
-rw-r--r--mediagoblin/gmg_commands/import_export.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/import_export.py b/mediagoblin/gmg_commands/import_export.py
index 812d1486..367924a5 100644
--- a/mediagoblin/gmg_commands/import_export.py
+++ b/mediagoblin/gmg_commands/import_export.py
@@ -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