Skip to content

Commit 3032a5d

Browse files
committed
Fixing copying of static filerefs
1 parent 53286f4 commit 3032a5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/export/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,8 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
242242
# Extend src_paths wit libraries_paths
243243
if libraries_paths is not None:
244244
paths.extend(libraries_paths)
245-
246245
if not isinstance(src_paths, dict):
247246
src_paths = {"": paths}
248-
249247
# Export Directory
250248
if not exists(export_path):
251249
makedirs(export_path)
@@ -293,7 +291,7 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
293291
files + list(exporter.static_files), inc_repos, notify)
294292
else:
295293
for static_file in exporter.static_files:
296-
if not exists(join(export_path, basename(static_file))):
297-
copyfile(static_file, join(export_path, basename(static_file)))
294+
if not exists(join(export_path, basename(static_file.name))):
295+
copyfile(static_file.path, join(export_path, static_file.name))
298296

299297
return exporter

0 commit comments

Comments
 (0)