Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Commit 3b634c3

Browse files
committed
cleanup: add python namespace
1 parent 9438568 commit 3b634c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/window.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,15 +393,15 @@ void Window::set_menu_actions() {
393393
}
394394
if(view->file_path>Config::get().python.plugin_directory){
395395
auto stem=view->file_path.stem().string();
396-
auto module=PythonInterpreter::get().get_loaded_module(stem);
396+
auto module=Python::Interpreter::get().get_loaded_module(stem);
397397
if(module){
398398
auto module_new=pybind11::module(PyImport_ReloadModule(module.ptr()),false);
399399
if(module_new)
400400
Terminal::get().print("Python module "+stem + " has been reloaded \n");
401-
else PythonError();
401+
else Python::Error();
402402
}else{
403-
PythonError();
404-
module=PythonInterpreter::get().import(stem);
403+
Python::Error();
404+
module=Python::Interpreter::get().import(stem);
405405
if(module)
406406
Terminal::get().print("Python module "+stem + " has been reloaded \n");
407407
}

0 commit comments

Comments
 (0)