summaryrefslogtreecommitdiffstats
path: root/devshell/modules/directory.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <[email protected]>2010-07-11 17:28:46 (GMT)
committer Yaakov M. Nemoy <[email protected]>2010-07-11 17:37:54 (GMT)
commit0f6fe3f565f09ff475e34126bcbf12f985ec5e42 (patch)
tree56e4c59cc6ebac9850e3553af9f7fdd9dfba5ef8 /devshell/modules/directory.py
parent89f69025d84f57d764ecada10cc06d8e9eabc273 (diff)
Saves us the trouble of importing join into every module
Diffstat (limited to 'devshell/modules/directory.py')
-rw-r--r--devshell/modules/directory.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/devshell/modules/directory.py b/devshell/modules/directory.py
index 596ba77..7c171da 100644
--- a/devshell/modules/directory.py
+++ b/devshell/modules/directory.py
@@ -77,13 +77,15 @@ class Directory(Module):
return self.cfg['name']
except KeyError,e:
raise(NotADevshellDir(getcwd()))
-
@property
def dir(self):
'''absolute pathname to the directory where it is held on the file system'''
return join(self.parent, self.name)
+ def subdir(self, d):
+ return join(self.dir, d)
+
@property
def type(self):
return self.cfg['type']