Here you go :-)


#!/usr/bin/env python
################################################################################
#
#  qooxdoo - the new era of web development
#
#  http://qooxdoo.org
#
#  Copyright:
#    2008 1&1 Internet AG, Germany, http://www.1und1.de
#
#  License:
#    LGPL: http://www.gnu.org/licenses/lgpl.html
#    EPL: http://www.eclipse.org/org/documents/epl-v10.php
#    See the LICENSE file in the project's top-level directory for details.
#
#  Authors:
#    * Thomas Herchenroeder (thron7)
#
################################################################################

##
# This is a stub proxy for the real generator.py
##

import sys, os

CMD_PYTHON = 'python'
QOOXDOO_PATH = '../qooxdoo'
REAL_GENERATOR = os.path.normpath(
                    
os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),
                                 QOOXDOO_PATH, 'tool', 'bin', 
'generator.py'))
                                
os.chdir(os.path.dirname(sys.argv[0]))  # switch to skeleton dir

argList = []
argList.append(CMD_PYTHON)
argList.append(REAL_GENERATOR)
argList.extend(sys.argv[1:])

os.execvp(CMD_PYTHON, argList)


> Chris,
>
> could you post the contents of the generate.py script.
>
> Thomas
>
>
>   
>> Hi devs,
>>
>> I'm getting the following when trying to generate the simple Hello World
>> app:
>>     
>>> C:\custom>generate.py source
>>> Traceback (most recent call last):
>>>   File "C:\custom\generate.py", line 40, in <module>
>>>     os.execvp(CMD_PYTHON, argList)
>>>   File "C:\Python25\lib\os.py", line 353, in execvp
>>>     _execvpe(file, args)
>>>   File "C:\Python25\lib\os.py", line 389, in _execvpe
>>>     func(fullname, *argrest)
>>> OSError: [Errno 2] No such file or directory
>>>       
>> I'm slowly starting to get my head around the qooxdoo way of setting up
>> a project, but am not sure if I'm doing something wrong here or if
>> there's another explanation... (probably me doing something wrong).
>>
>> -Chris
>>
>>
>>     


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to