R
args <- commandArgs(trailingOnly=F)
self_path <- normalizePath(dirname(sub("^--file=", "", args[grep("^--file=", args)])))
python
self_path = sys.path[0]
shell
self_path=$(cd $(dirname $0); pwd)
args <- commandArgs(trailingOnly=F)
self_path <- normalizePath(dirname(sub("^--file=", "", args[grep("^--file=", args)])))
self_path = sys.path[0]
self_path=$(cd $(dirname $0); pwd)