const cast to the python function
This commit is contained in:
parent
053bb2d100
commit
bcb8de973a
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ Openbox::Openbox(int argc, char **argv)
|
||||||
if (!rcpyfd) {
|
if (!rcpyfd) {
|
||||||
printf("failed to load python file %s\n", _scriptfilepath.c_str());
|
printf("failed to load python file %s\n", _scriptfilepath.c_str());
|
||||||
} else {
|
} else {
|
||||||
PyRun_SimpleFile(rcpyfd, _scriptfilepath.c_str());
|
PyRun_SimpleFile(rcpyfd, const_cast<char*>(_scriptfilepath.c_str()));
|
||||||
fclose(rcpyfd);
|
fclose(rcpyfd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue