Expand user directories for web_assets_path and textures_path options.
Fixes #473
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user