Browse files

Merge pull request #44 from dedan/develop

fix the module import when linking to the git root instead of module
  • Loading branch information...
2 parents f9560e5 + 1a27732 commit cacf66e118d3d076ee7b7fa3b3b4a6b3daf1c07b @piskvorky piskvorky committed Jun 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 __init__.py
View
4 __init__.py
@@ -1,4 +1,4 @@
# script by dedan: helps him to symlink gensim
import os
-modules_path = os.path.join('site-packages', 'gensim', 'gensim')
-__path__.append(os.path.join(os.path.dirname(os.__file__), modules_path))
+dirname = __path__[0] # Package's main folder
+__path__.insert(0, os.path.join(dirname, "gensim"))

0 comments on commit cacf66e

Please sign in to comment.