Hi,

On Thu, Mar 12, 2009 at 11:44 PM, Francesco Piccinno <[email protected]>wrote:

> You have to obviously adjust the data_files in the setup.py like:
>
>   data_files=[('data', ['dist/logo.png', '/home/blah/filetoinclude.txt'])],
>
> then in the plugin start file, you have to put something like:
>
> class YourPlugin(Plugin):
>  def start(self, reader):
>     f = open(reader.extract_file("data/filetoinclude.txt"), "r")
>     print f.read()


Thanks. It's exactly what I want. :)

>
>
> or something like that.
>
> 2009/3/8 Luis A. Bastiao Silva <[email protected]>:
> > Hi,
> >
> > I'm packing data files with a plugin.
> > In the code of plugin I'm putting those files at data/.
> >
> > In code how I can get data/ path?
> >
> > reader.get_path give me the UMP file full path.
> > But I want data/ full path. What is suppose to do? There isn't nothing
> about
> > that in UmitPlugins wiki page.
> >
> > Sample: A plugin attaching a image and just display it in a windows. How
> I
> > do that?
> >
> >
> > Regards,
> > --
> > Luís A. Bastião Silva
> >
> >
>
>
>
> --
> Best regards,
> Francesco Piccinno
>



-- 
Luís A. Bastião Silva
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Umit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/umit-devel

Reply via email to