const cast to the python function
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/openbox.cc
→
src/openbox.cc
@@ -155,7 +155,7 @@ FILE *rcpyfd = fopen(_scriptfilepath.c_str(), "r");
if (!rcpyfd) { printf("failed to load python file %s\n", _scriptfilepath.c_str()); } else { - PyRun_SimpleFile(rcpyfd, _scriptfilepath.c_str()); + PyRun_SimpleFile(rcpyfd, const_cast<char*>(_scriptfilepath.c_str())); fclose(rcpyfd); }