Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
csound
csound-sanitize-sys.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File csound-sanitize-sys.patch of Package csound
--- a/frontends/CsoundVST/Shell.cpp +++ b/frontends/CsoundVST/Shell.cpp @@ -211,6 +211,8 @@ namespace csound void Shell::main(int argc, char **argv) { PySys_SetArgv_(argc, argv); + /* Sanitize sys.path */ + PyRun_SimpleString_("import sys; sys.path = filter(None, sys.path)"); } void Shell::initialize() --- a/frontends/CsoundVST/ScoreGeneratorVst.cpp +++ b/frontends/CsoundVST/ScoreGeneratorVst.cpp @@ -427,6 +427,8 @@ Shell::open(); char *argv[] = {"",""}; PySys_SetArgv(1, argv); + /* Sanitize sys.path */ + PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)"); PyObject *mainModule = PyImport_ImportModule("__main__"); result = runScript("import sys\n"); if(result)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor