0

Removed ConfigOptionParser usaged

Command line args are now parsed with the vanilla OptParser.  This
paves the way for a new settings.py parser
This commit is contained in:
Andrew Chin
2012-01-01 14:05:51 -05:00
parent fed7ae0157
commit 0a23187f51
3 changed files with 49 additions and 45 deletions

View File

@@ -58,5 +58,10 @@ def validateBGColor(color):
def validateOptImg(opt):
return bool(opt)
def valiateTexturePath(path):
# Expand user dir in directories strings
path = os.path.expanduser(path)
# TODO assert this path exists?
if options.web_assets_path:
options.web_assets_path = os.path.expanduser(options.web_assets_path)