Utility classes and functions
Functions
| addquotes(string_) | Add double quotes at the begin and end of the input string if not present. |
| buildpyexec(toolname[, extrapath, extraenv]) | Build the full command line for launching a python script |
| default_maxcachesize() | |
| default_workdir() | |
| frozen() | |
| gsdview_prerun() | |
| isexecutable(cmd) | Check if “cmd” actually is an executable program. |
| isscript(filename) | Check if a file is a script |
| locateresource(resource, modfile) | Return path of a resource used by modfile |
| restore_settings() | |
| size(path) | Return the directory size in bytes |
| which(cmd[, env, func]) | Return the full path of the program (cmd) or None. |
Build the full command line for launching a python script
| Parameters : |
|
|---|
Return path of a resource used by modfile
| Parameters : |
|
|---|
Return the full path of the program (cmd) or None.
>>> which('ls')
'/bin/ls'