kopia lustrzana https://github.com/inkstitch/inkstitch
				
				
				
			
		
			
				
	
	
		
			20 wiersze
		
	
	
		
			563 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			20 wiersze
		
	
	
		
			563 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
#!/usr/bin/env python
 | 
						|
 | 
						|
import sys
 | 
						|
import os
 | 
						|
from os.path import dirname
 | 
						|
 | 
						|
# add inkstitch libs to python path
 | 
						|
parent_dir = os.path.join(dirname(dirname(__file__)))
 | 
						|
sys.path.append(parent_dir)
 | 
						|
 | 
						|
# try find add inkex.py et al. as well
 | 
						|
sys.path.append(os.path.join(parent_dir, "inkscape", "share", "extensions"))
 | 
						|
sys.path.append(os.path.join("/usr/share/inkscape/extensions"))
 | 
						|
# default inkex.py location on macOS
 | 
						|
sys.path.append("/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/")
 | 
						|
 | 
						|
from lib.inx import generate_inx_files
 | 
						|
 | 
						|
generate_inx_files()
 |