Skip to content
Snippets Groups Projects
Commit 269258c6 authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

bug fix

parent 6fb36086
No related branches found
No related tags found
No related merge requests found
...@@ -299,8 +299,7 @@ class PILSVG(PILGL): ...@@ -299,8 +299,7 @@ class PILSVG(PILGL):
self.dBuildings = [] self.dBuildings = []
for sFile in dBuildingFiles: for sFile in dBuildingFiles:
sPathSvg = "./svg/" + sFile img = self.pilFromSvgFile('svg',sFile)
img = self.pilFromSvgFile(sPathSvg)
self.dBuildings.append(img) self.dBuildings.append(img)
def loadScenerySVGs(self): def loadScenerySVGs(self):
...@@ -319,8 +318,7 @@ class PILSVG(PILGL): ...@@ -319,8 +318,7 @@ class PILSVG(PILGL):
} }
self.dScenery = [] self.dScenery = []
for sFile in dSceneryFiles: for sFile in dSceneryFiles:
sPathSvg = "./svg/" + sFile img = self.pilFromSvgFile('svg',sFile)
img = self.pilFromSvgFile(sPathSvg)
self.dScenery.append(img) self.dScenery.append(img)
def loadRailSVGs(self): def loadRailSVGs(self):
......
...@@ -64,7 +64,9 @@ def get_all_svg_files(directory='./svg/'): ...@@ -64,7 +64,9 @@ def get_all_svg_files(directory='./svg/'):
ret = [] ret = []
for f in os.listdir(directory): for f in os.listdir(directory):
if f != '__pycache__': if f != '__pycache__':
ret.append(directory + f) if f != "Buildings" and f != "Scenery":
ret.append(directory + f)
print("install svg:" , ret)
return ret return ret
...@@ -103,7 +105,7 @@ setup( ...@@ -103,7 +105,7 @@ setup(
keywords='flatland', keywords='flatland',
name='flatland-rl', name='flatland-rl',
packages=find_packages('.'), packages=find_packages('.'),
data_files=[('svg', get_all_svg_files())], data_files=[('svg', get_all_svg_files()),('svg/Buildings', get_all_svg_files('svg/Buildings/')),('svg/Scenery', get_all_svg_files('svg/Scenery/'))],
setup_requires=setup_requirements, setup_requires=setup_requirements,
test_suite='tests', test_suite='tests',
tests_require=test_requirements, tests_require=test_requirements,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment