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

Commit

Permalink
no longer fails on empty modulenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Jørgen Lien Sellæg authored and zalox committed Sep 4, 2016
1 parent fed014d commit 15b91fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ make install

Install dependencies (replace `x86_64` with `i686` for 32-bit MSYS2 installs):
```sh
pacman -S git mingw-w64-x86_64-cmake make mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-gtksourceviewmm3 mingw-w64-x86_64-boost mingw-w64-x86_64-aspell mingw-w64-x86_64-aspell-en mingw-w64-x86_64-libgit2 mingw-w64-x86_64-universal-ctags-git
pacman -S git mingw-w64-x86_64-cmake make mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-gtksourceviewmm3 mingw-w64-x86_64-boost mingw-w64-x86_64-aspell mingw-w64-x86_64-aspell-en mingw-w64-x86_64-gobject-introspection mingw-w64-x86_64-pygobject-devel mingw-w64-x86_64-python3-gobject mingw-w64-x86_64-libgit2 mingw-w64-x86_64-universal-ctags-git
```

Note that juCi++ must be built and run in a MinGW Shell (for instance MinGW-w64 Win64 Shell).
Expand Down
6 changes: 3 additions & 3 deletions src/python_interpreter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ inline pybind11::module pyobject_from_gobj(gpointer ptr){
Python::Interpreter::Interpreter(){
#ifdef _WIN32
auto root_path=Config::get().terminal.msys2_mingw_path;
append_path(root_path/"include/python3.5m");
append_path(root_path/"lib/python3.5");
add_path(root_path/"include/python3.5m");
add_path(root_path/"lib/python3.5");
long long unsigned size = 0L;
#else
long unsigned size = 0L;
Expand Down Expand Up @@ -95,7 +95,7 @@ Python::Interpreter::Interpreter(){
for(boost::filesystem::directory_iterator it(plugin_path);it!=end_it;it++){
auto module_name=it->path().stem().string();
if(module_name.empty())
break;
continue;
auto is_directory=boost::filesystem::is_directory(it->path());
auto has_py_extension=it->path().extension()==".py";
auto is_pycache=module_name=="__pycache__";
Expand Down

0 comments on commit 15b91fd

Please sign in to comment.