Commit 7ea14447 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Only archive sourcefile once

parent 7f5fa3fd
apa 100644 → 100755
...@@ -69,6 +69,7 @@ if __name__ == '__main__': ...@@ -69,6 +69,7 @@ if __name__ == '__main__':
# Read all python files # Read all python files
code = [] code = []
processed = set()
for filename in args: for filename in args:
archivename = filename archivename = filename
for strip in options.strip: for strip in options.strip:
...@@ -77,6 +78,10 @@ if __name__ == '__main__': ...@@ -77,6 +78,10 @@ if __name__ == '__main__':
archivename = m.group(1) archivename = m.group(1)
break break
if archivename in processed:
continue
processed.add(archivename)
name = getModuleName(archivename) name = getModuleName(archivename)
if name: if name:
f = open(filename) f = open(filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment