File: __init__.py

package info (click to toggle)
mayavi 1.5-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,172 kB
  • ctags: 2,002
  • sloc: python: 17,938; makefile: 53; sh: 27
file content (14 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This file makes this directory a Python package.
# Modules

import sys, os, string

#print __path__
my_name = os.path.basename (__path__[0])

# hacks to allow local names and prevents unnecessary reloading of
# modules.
for mod_name in ('mayavi.Common', 'mayavi.Base', 'mayavi.Base.Objects'):
    if sys.modules.has_key (mod_name):
        local = string.replace (mod_name, 'mayavi', 'mayavi.' + my_name)
        sys.modules[local] = sys.modules[mod_name]