Hi Ayose,

Ayose wrote:
> Try with ./generate.py:
> 
>       <arg value="./generate.py build"/>
> 
> generate.py has the line
> 
>     os.chdir(os.path.dirname(sys.argv[0]))  # switch to skeleton dir
> 
> This will fail when sys.argv[0] has no slash, because
> os.path.dirname(sys.argv[0]) returns an empty string
> 
>    $ python generate.py
>    Traceback (most recent call last):
>      File "generate.py", line 33, in <module>
>        os.chdir(os.path.dirname(sys.argv[0]))  # switch to skeleton dir
>    OSError: [Errno 2] No such file or directory: ''
> 
>    $ python ./generate.py
>    Usage: generator.py [options] job,...
>    [...]

Did you try to use

--snip--
<exec executable="python" failonerror="true">
    <arg value="generate.py"/>
    <arg value="build"/>
</exec>
--snip--

instead? Just a quick thought ;-)

cheers,
   Alex

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to