aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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