diff options
-rwxr-xr-x | bin/pocco | 3 | ||||
-rw-r--r-- | pocco.py | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -4,6 +4,7 @@ import os import sys lib = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..') -cmd = 'python ' + os.path.join(lib, 'pocco.py') + " ".join(sys.argv[2:]) +cmd = "python %s %s" % (os.path.join(lib, 'pocco.py'), + " ".join(sys.argv[1:])) print os.popen(cmd).read(), @@ -174,7 +174,7 @@ highlight_end = "</pre></div>" # Run the script. # For each source file passed in as an argument, generate the documentation. if __name__ == "__main__": - sources = list(sys.argv) + sources = list(sys.argv[1:]) sources.sort() if sources: ensure_directory() |