From 0d9aa0d9ca117f8c32632a894d987ef12768de08 Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Sun, 28 Aug 2011 19:15:27 +0200 Subject: [PATCH] Expand user directories for web_assets_path and textures_path options. Fixes #473 --- overviewer.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/overviewer.py b/overviewer.py index c04001e..1fbbd82 100755 --- a/overviewer.py +++ b/overviewer.py @@ -238,6 +238,12 @@ dir but you forgot to put quotes around the directory, since it contains spaces. else: north_direction = 'auto' + # Expand user dir in directories strings + if options.textures_path: + options.textures_path = os.path.expanduser(options.textures_path) + if options.web_assets_path: + options.web_assets_path = os.path.expanduser(options.web_assets_path) + logging.getLogger().setLevel( logging.getLogger().level + 10*options.quiet) logging.getLogger().setLevel(