Skip to content

Commit 09de121

Browse files
authored
Merge pull request #4013 from theotherjimmy/fix-subtract-basepath
Fix a small bug in subtract_basepath
2 parents 1b4a3c3 + 20edbe3 commit 09de121

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/export/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def rewrite_basepath(file_name, resources, export_path, loc):
138138
export_path - the final destination of the file after export
139139
"""
140140
new_f = join(loc, relpath(file_name, resources.file_basepath[file_name]))
141-
resources.file_basepath[join(export_path, new_f)] = export_path
141+
resources.file_basepath[new_f] = export_path
142142
return new_f
143143

144144

@@ -309,10 +309,10 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
309309
resources.file_basepath[config_header] = dirname(config_header)
310310

311311
if zip_proj:
312-
subtract_basepath(resources, export_path)
312+
subtract_basepath(resources, ".")
313313
for loc, res in resource_dict.iteritems():
314314
temp = copy.deepcopy(res)
315-
subtract_basepath(temp, export_path, loc)
315+
subtract_basepath(temp, ".", loc)
316316
resources.add(temp)
317317
else:
318318
for _, res in resource_dict.iteritems():

0 commit comments

Comments
 (0)