summaryrefslogtreecommitdiffstats
path: root/modules/dirfactory.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dirfactory.py')
-rw-r--r--modules/dirfactory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/dirfactory.py b/modules/dirfactory.py
index 30d5e59..1c2e5a2 100644
--- a/modules/dirfactory.py
+++ b/modules/dirfactory.py
@@ -40,6 +40,7 @@ foo = dict(foo)
dirs = dict([[key.lower(), val] for key, val in foo.iteritems() if isclass(val) and issubclass(val, Directory)])
class DirFactory(Module):
+ '''creates a new object of type defined by a directory's .devshell file'''
def __new__(cls, name=None):
if not name:
log.debug('no name with dirfactory')
@@ -58,6 +59,7 @@ class DirFactory(Module):
return foo
def whatis_sysdir(dir):
+ ''' given a dir, determine it's type'''
with pwd(dir):
cfg = ConfigObj('.devshell')
try: