git://git.onelab.eu
/
myslice.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
indented googlemaps.js
[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