slice page working. added temporarily core and util classes from manifold core
[unfold.git] / manifold / util / misc.py
diff --git a/manifold/util/misc.py b/manifold/util/misc.py
new file mode 100644 (file)
index 0000000..4494dcf
--- /dev/null
@@ -0,0 +1,13 @@
+import os, glob, inspect
+
+
+# Define the inclusion operator
+class contains(type): pass
+
+def find_local_modules(filepath):
+    modules = []
+    for f in glob.glob(os.path.dirname(filepath)+"/*.py"):
+        name = os.path.basename(f)[:-3]
+        if name != '__init__':
+            modules.append(name)
+    return modules