Blame view

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