Skip to content

Commit bb2c1df

Browse files
PatriceJiangminggo
authored andcommitted
fix _remove_file_with_ext (#460)
1 parent 541ca8c commit bb2c1df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/plugin_compile/project_compile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ def _is_debug_mode(self):
344344
return self._mode == 'debug'
345345

346346
def _remove_file_with_ext(self, work_dir, ext):
347+
if not os.path.exists(work_dir):
348+
return
347349
file_list = os.listdir(work_dir)
348350
for f in file_list:
349351
full_path = os.path.join(work_dir, f)

0 commit comments

Comments
 (0)