mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			225 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			225 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import sys, os, _tkinter
 | 
						|
ver = str(_tkinter.TCL_VERSION)
 | 
						|
for t in "tcl", "tk":
 | 
						|
    v = os.path.join(sys.prefix, "tcl", t+ver)
 | 
						|
    if os.path.exists(os.path.join(v, "tclIndex")):
 | 
						|
        os.environ[t.upper() + "_LIBRARY"] = v
 |