Commit bdb2fd6e17195ce482c43389f59cef594833e0b6

Authored by quillotm
1 parent 9191399c3b
Exists in master

this file permits to load correctly the modules of the subdirectory clustering_modules.

Showing 1 changed file with 11 additions and 0 deletions Side-by-side Diff

volia/clustering_modules/__init__.py
  1 +""" Just a simple way to import relative modules when calling
  2 + modules with the option -m
  3 + exemple : python -m volia.script
  4 + if script import a module in the same namespace
  5 + this will not work because python will try to
  6 + find a module in the directory of execution, not those of the
  7 + module file.
  8 +"""
  9 +import sys
  10 +import os
  11 +sys.path.append(os.path.dirname(__file__))