Skip to content

Commit

Permalink
Init: pkgutil: find extern subdir
Browse files Browse the repository at this point in the history
to find an extern subdir (freecad.module) also the base dir (freecad) has to search for extern directories with it's __name__ ("freecad")
  • Loading branch information
looooo committed Mar 30, 2017
1 parent 27eb270 commit 76d3bf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -5,6 +5,7 @@ add_subdirectory(Base)
add_subdirectory(App)
add_subdirectory(Main)
add_subdirectory(Mod)
add_subdirectory(freecad)
if(BUILD_GUI)
add_subdirectory(Gui)
configure_file(Doc/freecad.qhc ${CMAKE_BINARY_DIR}/doc/freecad.qhc COPYONLY)
Expand Down
2 changes: 2 additions & 0 deletions src/freecad/__init__.py
@@ -0,0 +1,2 @@
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

0 comments on commit 76d3bf9

Please sign in to comment.