This commit is contained in:
2021-03-14 12:05:57 +01:00
parent 02b4f78baf
commit 072f58a2e9
6 changed files with 18 additions and 5 deletions

View File

@@ -103,15 +103,19 @@ class PublisherService(PublisherABC):
relative_path = os.path.relpath(r)
file_path = os.path.join(relative_path, os.path.relpath(sub_file))
print(file_path)
self._included_files.append(os.path.relpath(file_path))
elif os.path.isfile(rel_path):
print(rel_path)
self._included_files.append(rel_path)
for r, d, f in os.walk(self._build_settings.source_path):
for file in f:
relative_path = os.path.relpath(r)
file_path = os.path.join(relative_path, os.path.relpath(file))
if self._is_path_excluded(relative_path):
break
if len(d) > 0:
for directory in d:
@@ -243,7 +247,7 @@ class PublisherService(PublisherABC):
except Exception as e:
Console.error('Could not find entry point', str(e))
if main is None:
if main is None or not hasattr(main, 'main'):
Console.error('Could not find entry point')
return