mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			339 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			339 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import os
 | 
						|
import sys
 | 
						|
 | 
						|
if not os.path.exists("build/us_pc/mods"):
 | 
						|
    sys.exit(0)
 | 
						|
 | 
						|
built_in_mods = []
 | 
						|
 | 
						|
for mod in os.listdir("mods"):
 | 
						|
    if os.path.isdir(mod) or (os.path.isfile(mod) and mod.endswith(".lua")):
 | 
						|
        built_in_mods.append(mod)
 | 
						|
 | 
						|
for mod in os.listdir("build/us_pc/mods"):
 | 
						|
    if mod in built_in_mods:
 | 
						|
        os.remove(mod) |