Skip to content

Commit 352d4eb

Browse files
committed
IMPROVEMENT: do not copy the vehicle.jpg file from the template directory. This will force users to replace it.
1 parent 3834ad0 commit 352d4eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MethodicConfigurator/backend_filesystem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ def directory_exists(directory: str) -> bool:
387387
def copy_template_files_to_new_vehicle_dir(self, template_dir: str, new_vehicle_dir: str):
388388
# Copy the template files to the new vehicle directory
389389
for item in os_listdir(template_dir):
390+
if item == 'vehicle.jpg':
391+
continue
390392
s = os_path.join(template_dir, item)
391393
d = os_path.join(new_vehicle_dir, item)
392394
if os_path.isdir(s):

0 commit comments

Comments
 (0)