From 57aa2449e72062894e979d908871177067fc5a06 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 7 Feb 2013 15:01:26 -0800 Subject: allow empty path input to use '.' rather than bail with error --- util/updatetpl.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/updatetpl.py') 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 + '/' -- cgit v1.2.3