]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/generate.py
2 ################################################################################
4 # qooxdoo - the new era of web development
9 # 2008 1&1 Internet AG, Germany, http://www.1und1.de
12 # LGPL: http://www.gnu.org/licenses/lgpl.html
13 # EPL: http://www.eclipse.org/org/documents/epl-v10.php
14 # See the LICENSE file in the project's top-level directory for details.
17 # * Thomas Herchenroeder (thron7)
19 ################################################################################
22 # This is a stub proxy for the real generator.py
25 import sys
, os
, subprocess
28 QOOXDOO_PATH
= 'G:/dev/qooxdoo-0.8-sdk'
29 REAL_GENERATOR
= os
.path
.normpath(
30 os
.path
.join(os
.path
.abspath(os
.path
.dirname(sys
.argv
[0])),
31 QOOXDOO_PATH
, 'tool', 'bin', 'generator.py'))
33 os
.chdir(os
.path
.dirname(sys
.argv
[0])) # switch to skeleton dir
36 argList
.append(CMD_PYTHON
)
37 argList
.append(REAL_GENERATOR
)
38 argList
.extend(sys
.argv
[1:])
39 if sys
.platform
== "win32":
43 argList1
.append('"%s"' % arg
)
48 argList
= ['"%s"' % x
for x
in argList
] # quote argv elements
49 cmd
= " ".join(argList
)
50 subprocess
.call(cmd
, shell
=True)