4494dcf33388f864e93fd1e4b82a7081f10d8eed
[myslice.git] / manifold / util / misc.py
1 import os, glob, inspect
2
3
4 # Define the inclusion operator
5 class contains(type): pass
6
7 def find_local_modules(filepath):
8     modules = []
9     for f in glob.glob(os.path.dirname(filepath)+"/*.py"):
10         name = os.path.basename(f)[:-3]
11         if name != '__init__':
12             modules.append(name)
13     return modules