📄 copy-swig-py.sh
字号:
#!/bin/sh## copy-swig-py.sh: copy the Python bindings' .py files to the install locn## USAGE: copy-swig-py.sh PYTHON INSTALL SOURCE_DIR DEST_DIR#if test "$#" != 4; then echo USAGE: $0 PYTHON INSTALL SOURCE_DIR DEST_DIR exit 1fipyprog="$1"install="$2"srcdir="$3"dstdir="$4"# cd to the source directory so that we can get filenames rather than pathscd "$srcdir"# copy all the .py files to the target locationfor file in *.py; do $install "$file" "${dstdir}/${file}"done# figure out where the precompiling script is locatedscript="`\"$pyprog\" -c 'import compileall; print compileall.__file__'`"# precompile all of the files"$pyprog" "$script" "$dstdir"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -