summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-05-23 13:46:25 +0200
committerLars Wirzenius <liw@liw.fi>2012-05-23 13:46:25 +0200
commit4c1035b0df886ff63b8e9c8bacf0642dd236cb86 (patch)
tree0c95a4e3736f0a26734183ba4e55c155992b8ace /summain
parentca936f7c5f387b097c544989a762a1e2e07c1e39 (diff)
downloadsummain-4c1035b0df886ff63b8e9c8bacf0642dd236cb86.tar.gz
Make summain handle a symlink to root
Diffstat (limited to 'summain')
-rwxr-xr-xsummain2
1 files changed, 2 insertions, 0 deletions
diff --git a/summain b/summain
index 278eca8..fd0e077 100755
--- a/summain
+++ b/summain
@@ -128,6 +128,8 @@ class Summain(cliapp.Application):
dirnames.sort()
for filename in sorted(filenames):
yield os.path.join(dirname, filename)
+ elif os.path.islink(root):
+ yield root
elif not os.path.exists(root):
raise cliapp.AppException('Does not exist: %s' % root)
else: