@@ -356,9 +356,8 @@ def main():
356356 )
357357
358358
359- BuildFolder = os .path .abspath (os .path .join (os .path .dirname (__file__ ), 'build' ))
360- if os .path .exists (BuildFolder ):
361- delete_files_in_directory (BuildFolder )
359+
360+ delete_files_in_directory (os .path .abspath (os .path .join (os .path .dirname (__file__ ), 'build' )))
362361
363362 if os .path .isfile (os .path .abspath (os .path .join (os .path .dirname (__file__ ), "! " + NameCustomAvatarDir + "Patcher.py" ))):
364363 os .remove (os .path .abspath (os .path .join (os .path .dirname (__file__ ), "! " + NameCustomAvatarDir + "Patcher.py" )))
@@ -375,13 +374,10 @@ def main():
375374
376375
377376 except Exception as e :
378- CustomDir = os .path .abspath (os .path .join (os .path .dirname (__file__ ), NameCustomDir ))
379- if os .path .exists (CustomDir ):
380- delete_files_in_directory (CustomDir )
381377
382- BuildFolder = os .path .abspath (os .path .join (os .path .dirname (__file__ ), 'build' ))
383- if os . path . exists ( BuildFolder ):
384- delete_files_in_directory (BuildFolder )
378+ delete_files_in_directory ( os .path .abspath (os .path .join (os .path .dirname (__file__ ), NameCustomDir ) ))
379+
380+ delete_files_in_directory (os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ), 'build' )) )
385381
386382 if os .path .isfile (os .path .abspath (os .path .join (os .path .dirname (__file__ ), "! " + NameCustomAvatarDir + "Patcher.py" ))):
387383 os .remove (os .path .abspath (os .path .join (os .path .dirname (__file__ ), "! " + NameCustomAvatarDir + "Patcher.py" )))
0 commit comments