diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-05-23 13:46:25 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-05-23 13:46:25 +0200 |
commit | 4c1035b0df886ff63b8e9c8bacf0642dd236cb86 (patch) | |
tree | 0c95a4e3736f0a26734183ba4e55c155992b8ace /summain | |
parent | ca936f7c5f387b097c544989a762a1e2e07c1e39 (diff) | |
download | summain-4c1035b0df886ff63b8e9c8bacf0642dd236cb86.tar.gz |
Make summain handle a symlink to root
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |