2021.4 #19

Merged
edraft merged 237 commits from 2021.4 into master 2021-04-01 10:13:33 +02:00
Showing only changes of commit 88c0153ca2 - Show all commits

View File

@ -39,9 +39,11 @@ class PublisherService(PublisherABC):
self._included_dirs: list[str] = [] self._included_dirs: list[str] = []
self._distributed_files: list[str] = [] self._distributed_files: list[str] = []
self._src_path_part = 'src/' self._path_mark = '/'
if sys.platform == 'win32': if sys.platform == 'win32':
self._src_path_part = 'src\\' self._path_mark = '\\'
self._src_path_part = f'src{self._path_mark}'
@property @property
def source_path(self) -> str: def source_path(self) -> str:
@ -60,7 +62,7 @@ class PublisherService(PublisherABC):
if self._src_path_part in file: if self._src_path_part in file:
file = file.replace(self._src_path_part, '', 1) file = file.replace(self._src_path_part, '', 1)
dirs = os.path.dirname(file).split('/') dirs = os.path.dirname(file).split(self._path_mark)
for d in dirs: for d in dirs:
if d.__contains__('.'): if d.__contains__('.'):
dirs.remove(d) dirs.remove(d)