22 lines
		
	
	
		
			606 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			606 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
 | |
| 
 | |
| scriptname="$(basename "$0")"
 | |
| if [ "$scriptname" == "pywrapper" ]; then
 | |
|     if [ -n "$*" ]; then
 | |
|         nutoolsdir="$(cd "$(dirname "$0")/.."; pwd)"
 | |
|         scriptname="$(basename "$1" .py)"
 | |
|         shift
 | |
|     else
 | |
|         echo "Faire
 | |
|     ln -s /path/to/nutools/SCRIPT /path/to/nutools/lib/pywrapper
 | |
| pour lancer pyulib/src/uapps/SCRIPT.py"
 | |
|         exit 1
 | |
|     fi
 | |
| else
 | |
|     nutoolsdir="$(cd "$(dirname "$0")"; pwd)"
 | |
| fi
 | |
| 
 | |
| source "$nutoolsdir/lib/ulib/pyulib/pyulib"
 | |
| exec "$nutoolsdir/lib/pyulib/src/uapps/$scriptname.py" "$@"
 |