diff document_it.py @ 7:6bf82220a04c

more stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 01 Aug 2011 22:51:12 -0700
parents 5a4c1339b2f9
children f7fa35f972f4
line wrap: on
line diff
--- a/document_it.py	Mon Aug 01 22:05:30 2011 -0700
+++ b/document_it.py	Mon Aug 01 22:51:12 2011 -0700
@@ -96,6 +96,12 @@
         parser.print_help()
         parser.exit()
 
+    # get base url
+    if '://' in options.dest:
+        baseurl = options.dest
+    else:
+        baseurl = 'file://' + options.dest
+
     # read the manifests
     files = []
     for manifest in manifests:
@@ -104,7 +110,7 @@
                 files.append(item)
     if options.list:
         for item in files:
-            print '%s -> %s' % (item[0], item[1])
+            print '%s -> %s/%s' % (item[0], baseurl.rstrip('/'), item[1].lstrip('/'))
     
 
     # render and upload READMEs