[qooxdoo-commit] SF.net SVN: qooxdoo:[16246] branches/legacy_0_7_x/qooxdoo/frontend/ framework/tool
Brought to you by:
ecker,
martinwittemann
From: <tb...@us...> - 2008-08-29 14:58:51
|
Revision: 16246 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=16246&view=rev Author: tbtz Date: 2008-08-29 14:58:47 +0000 (Fri, 29 Aug 2008) Log Message: ----------- Added basic functionality so that the generator accepts comments in generator.json All Lines in generator.json starting with "#" (no starting whitespaces) will be ignored in build process e.g. { foo :bar, # comment bar :foo } Modified Paths: -------------- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool/generator2.py Modified: branches/legacy_0_7_x/qooxdoo/frontend/framework/tool/generator2.py =================================================================== --- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool/generator2.py 2008-08-29 14:52:26 UTC (rev 16245) +++ branches/legacy_0_7_x/qooxdoo/frontend/framework/tool/generator2.py 2008-08-29 14:58:47 UTC (rev 16246) @@ -70,13 +70,13 @@ # Load from json configuration obj = open(options.config) - + # Strip comment lines starting with # jsonstr = '' for line in obj: if not line.startswith('#'): jsonstr += line - + config = simplejson.loads(jsonstr) obj.close() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |