Skip to content

Commit

Permalink
IMPROVEMENT: do not copy the vehicle.jpg file from the template direc…
Browse files Browse the repository at this point in the history
…tory. This will force users to replace it.
  • Loading branch information
amilcarlucas committed Jun 16, 2024
1 parent 3834ad0 commit 352d4eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MethodicConfigurator/backend_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ def directory_exists(directory: str) -> bool:
def copy_template_files_to_new_vehicle_dir(self, template_dir: str, new_vehicle_dir: str):
# Copy the template files to the new vehicle directory
for item in os_listdir(template_dir):
if item == 'vehicle.jpg':
continue
s = os_path.join(template_dir, item)
d = os_path.join(new_vehicle_dir, item)
if os_path.isdir(s):
Expand Down

0 comments on commit 352d4eb

Please sign in to comment.