Hello,<div><br></div><div>I've tried your patch and it works perfectly. What i'm trying now is to import from CallWizard.py another file. </div><div>Let's imagine I have a file in fax/ called Test.py that looks like this:</div>
<div><br></div><div><div>class Test():</div><div><br></div><div> def __init__(self):</div><div> print "it works"</div></div><div><br></div><div>I add it to Pyuno_fax.mk</div><div><br></div><div>
<div>$(eval $(call gb_Pyuno_add_files,fax,\</div><div> CallWizard.py \</div><div> Test.py \</div></div><div>))</div><div><br></div><div>and then I import it in CallWizard.py like: from Test import Test but it doesn't work ( I've also tried from com.sun.star.wizards.fax.Test import Test )</div>
<div><br></div><div>any idea ?</div><div><br><div class="gmail_quote">2011/9/7 Caolán McNamara <span dir="ltr"><<a href="mailto:caolanm@redhat.com" target="_blank">caolanm@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div>On Wed, 2011-09-07 at 11:24 +0100, Caolán McNamara wrote:<br>
> On Tue, 2011-09-06 at 19:49 +0200, Xisco Faulí wrote:<br>
> > Hello,<br>
> ><br>
> ><br>
> > I've tried to follow your steps but placing the code in<br>
> > wizards/com/sun/star/wizards/fax/CallWizard.py. So far I haven't been<br>
> > able to build it successfully. It complains and says: ERROR: File not<br>
> > found: CallWizard.py<br>
><br>
> I see that wizards has been converted to gmake in the meantime, so it no<br>
> longer uses dmake <a href="http://makefile.mk" target="_blank">makefile.mk</a> stuff, we need some gbuild support for<br>
> copying .py files into their final locations with some form of<br>
> pyuno .component file support support.<br>
<br>
</div></div>dtardon was good enough to put together the gmake stuff needed to get<br>
this bootstrapped, which are now committed to master.<br>
<br>
So here's your patch back again, except "gbuildified" so this should<br>
work to make wizards->fax stick hello world into writer.<br>
<br>
There's still a lot of nasty things, dumping the .py directly into<br>
"program" as opposed to making some sort of subdir into which they can<br>
go, but maybe it'll help<br>
<font color="#888888"><br>
C.<br>
</font></blockquote></div><br></div>