File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494 print (f"Successfully built: { target } " )
9595 format_path = os .path .join (plugins_dir , fmt )
9696
97+ for pdb_file in format_path .rglob ("*.pdb" ):
98+ try :
99+ pdb_file .unlink ()
100+ print (f"Removed: { pdb_file } " )
101+ except Exception as e :
102+ print (f"Failed to remove { pdb_file } : { e } " )
103+
104+ for trash in format_path .rglob ("plugdata.*" ): # weird plugdata build trash on Windows for some reason
105+ try :
106+ trash .unlink ()
107+ print (f"Removed: { trash } " )
108+ except Exception as e :
109+ print (f"Failed to remove { trash } : { e } " )
110+
97111 if os .path .isdir (format_path ):
98112 target_dir = os .path .join (build_output_dir , fmt )
99113
100114 # Clear existing target folder if it exists, then copy
101115 if os .path .exists (target_dir ):
102116 shutil .rmtree (target_dir )
103117 shutil .copytree (format_path , target_dir )
104-
105- for pdb_file in build_dir .rglob ("*.pdb" ):
106- try :
107- pdb_file .unlink ()
108- print (f"Removed: { pdb_file } " )
109- except Exception as e :
110- print (f"Failed to remove { pdb_file } : { e } " )
111-
112- for pdb_file in build_dir .rglob ("plugdata.*" ): # weird plugdata build trash on Windows for some reason
113- try :
114- pdb_file .unlink ()
115- print (f"Removed: { pdb_file } " )
116- except Exception as e :
117- print (f"Failed to remove { pdb_file } : { e } " )
You can’t perform that action at this time.
0 commit comments