aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Murphy <alec@checksum.fail>2017-04-28 10:46:03 -0400
committerAlec Murphy <alec@checksum.fail>2017-04-28 10:46:03 -0400
commit23553bbae1579e1b296c87b55b194e1945c595cc (patch)
tree8c001726ec31101e4d9541ad9cdfa0a930a46496
parentdddede93cc68a5c96923dc7e4fdfff05b84a8ab6 (diff)
Fixes #3
-rwxr-xr-xisoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isoc.py b/isoc.py
index d99976c..abed2c4 100755
--- a/isoc.py
+++ b/isoc.py
@@ -70,7 +70,7 @@ def write_iso_c(self, iso_c_file):
# Place files in corresponding dicts
for d in sorted(dirs, reverse=True):
for i in self.files:
- if i.find(d) != -1 and i != d:
+ if i.find((d+"/").replace("//","/")) != -1 and i != d:
if 'filename' not in self.files[i]:
self.files[i]['filename'] = i.split('/')[len(i.split('/'))-1]
self.files[i]['clus'] = 0