diff options
author | friendica <info@friendica.com> | 2013-02-07 15:01:26 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-07 15:01:26 -0800 |
commit | 57aa2449e72062894e979d908871177067fc5a06 (patch) | |
tree | 79b0b441812af3ca4a68704f726e309738bdb31f /util | |
parent | ce2fd234618366d13c8ba6991c2f2b1d88d36c90 (diff) | |
download | volse-hubzilla-57aa2449e72062894e979d908871177067fc5a06.tar.gz volse-hubzilla-57aa2449e72062894e979d908871177067fc5a06.tar.bz2 volse-hubzilla-57aa2449e72062894e979d908871177067fc5a06.zip |
allow empty path input to use '.' rather than bail with error
Diffstat (limited to 'util')
-rwxr-xr-x | util/updatetpl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/updatetpl.py b/util/updatetpl.py index d3dd7ef04..7a3801352 100755 --- a/util/updatetpl.py +++ b/util/updatetpl.py @@ -39,6 +39,9 @@ except getopt.GetoptError: if path == '': path = raw_input('Path to top-level Friendica directory: ') +if path == '': + path = '.' + if path[-1:] != '/': path = path + '/' |