Skip to content
Snippets Groups Projects
Commit 5614a2b1 authored by spmohanty's avatar spmohanty
Browse files

Move all assets to the same folder level

parent dfbb986a
No related branches found
No related tags found
No related merge requests found
Showing
with 30 additions and 41 deletions
...@@ -31,13 +31,6 @@ from screeninfo import get_monitors # noqa: E402 ...@@ -31,13 +31,6 @@ from screeninfo import get_monitors # noqa: E402
from flatland.core.grid.rail_env_grid import RailEnvTransitions # noqa: E402 from flatland.core.grid.rail_env_grid import RailEnvTransitions # noqa: E402
def join_filenames(root_folder, filenames):
filenames = [
os.path.join(root_folder, filename)
for filename in filenames
]
return filenames
class PILGL(GraphicsLayer): class PILGL(GraphicsLayer):
# tk.Tk() must be a singleton! # tk.Tk() must be a singleton!
...@@ -321,27 +314,26 @@ class PILSVG(PILGL): ...@@ -321,27 +314,26 @@ class PILSVG(PILGL):
def load_buildings(self): def load_buildings(self):
dBuildingFiles = [ dBuildingFiles = [
"Bank.svg", "Buildings-Bank.svg",
"Bar.svg", "Buildings-Bar.svg",
"Wohnhaus.svg", "Buildings-Wohnhaus.svg",
"Hochhaus.svg", "Buildings-Hochhaus.svg",
"Hotel.svg", "Buildings-Hotel.svg",
"Office.svg", "Buildings-Office.svg",
"Polizei.svg", "Buildings-Polizei.svg",
"Post.svg", "Buildings-Post.svg",
"Supermarkt.svg", "Buildings-Supermarkt.svg",
"Tankstelle.svg", "Buildings-Tankstelle.svg",
"Fabrik_A.svg", "Buildings-Fabrik_A.svg",
"Fabrik_B.svg", "Buildings-Fabrik_B.svg",
"Fabrik_C.svg", "Buildings-Fabrik_C.svg",
"Fabrik_D.svg", "Buildings-Fabrik_D.svg",
"Fabrik_E.svg", "Buildings-Fabrik_E.svg",
"Fabrik_F.svg", "Buildings-Fabrik_F.svg",
"Fabrik_G.svg", "Buildings-Fabrik_G.svg",
"Fabrik_H.svg", "Buildings-Fabrik_H.svg",
"Fabrik_I.svg", "Buildings-Fabrik_I.svg"
] ]
dBuildingFiles = join_filenames("Buildings", dBuildingFiles)
imgBg = self.pil_from_svg_file('svg', "Background_city.svg") imgBg = self.pil_from_svg_file('svg', "Background_city.svg")
...@@ -353,27 +345,24 @@ class PILSVG(PILGL): ...@@ -353,27 +345,24 @@ class PILSVG(PILGL):
def load_scenery(self): def load_scenery(self):
scenery_files = [ scenery_files = [
"Laubbaume_A.svg", "Scenery-Laubbaume_A.svg",
"Laubbaume_B.svg", "Scenery-Laubbaume_B.svg",
"Laubbaume_C.svg", "Scenery-Laubbaume_C.svg",
"Nadelbaume_A.svg", "Scenery-Nadelbaume_A.svg",
"Nadelbaume_B.svg", "Scenery-Nadelbaume_B.svg",
"Bergwelt_B.svg" "Scenery-Bergwelt_B.svg"
] ]
scenery_files = join_filenames("Scenery", scenery_files)
scenery_files_d2 = [ scenery_files_d2 = [
"Bergwelt_C_Teil_1_links.svg", "Scenery-Bergwelt_C_Teil_1_links.svg",
"Bergwelt_C_Teil_2_rechts.svg" "Scenery-Bergwelt_C_Teil_2_rechts.svg"
] ]
scenery_files_d2 = join_filenames("Scenery", scenery_files_d2)
scenery_files_d3 = [ scenery_files_d3 = [
"Bergwelt_A_Teil_3_rechts.svg", "Scenery-Bergwelt_A_Teil_3_rechts.svg",
"Bergwelt_A_Teil_2_mitte.svg", "Scenery-Bergwelt_A_Teil_2_mitte.svg",
"Bergwelt_A_Teil_1_links.svg" "Scenery-Bergwelt_A_Teil_1_links.svg"
] ]
scenery_files_d3 = join_filenames("Scenery", scenery_files_d3)
img_back_ground = self.pil_from_svg_file('svg', "Background_Light_green.svg") img_back_ground = self.pil_from_svg_file('svg', "Background_Light_green.svg")
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
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