0

Expand user directories for web_assets_path and textures_path options.

Fixes #473
This commit is contained in:
Alejandro Aguilera
2011-08-28 19:15:27 +02:00
parent 33e85743f2
commit 0d9aa0d9ca

View File

@@ -238,6 +238,12 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
else: else:
north_direction = 'auto' 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().setLevel(
logging.getLogger().level + 10*options.quiet) logging.getLogger().level + 10*options.quiet)
logging.getLogger().setLevel( logging.getLogger().setLevel(