Cleaning a bit: os.path.sep.join -> os.path.join
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 23 May 2013 18:12:20 +0000 (13:12 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 23 May 2013 18:33:08 +0000 (13:33 -0500)
mediagoblin/gmg_commands/assetlink.py

index ec2c9c2c595fd5d907d1f62dd43cb2832d359884..148ebe9e9ca6310a5babc1413c6c14c1ebee1221 100644 (file)
@@ -98,8 +98,8 @@ def link_plugin_assets(plugin_static, plugins_link_dir, printer=simple_printer):
     """
     # link_dir is the final directory we'll link to, a combination of
     # the plugin assetlink directory and plugin_static.name
-    link_dir = os.path.sep.join(
-        [plugins_link_dir.rstrip(os.path.sep), plugin_static.name])
+    link_dir = os.path.join(
+        plugins_link_dir.rstrip(os.path.sep), plugin_static.name)
 
     # make the link directory parent dirs if necessary
     if not os.path.lexists(plugins_link_dir):