Re: Help with autotools

2006-09-03 Thread pavel . starek
Jonh Wendell wrote:
> Hi all! I need help with autotools stuff..
>
> My directory structure:
>
> project_name
>   src
> main.py
> others.py
>   data
> ui.glade
> images.png
>   po
> translations.po
>
> I'd like to do something like that:
>
> The files in "src" should be installed at: $prefix/lib/project_name
> The files in "data" should be installed at: $prefix/share/project_name
>
> At $prefix/bin should be create a slink:
>  $prefix/bin/project_name -> $prefix/lib/project_name/main.py
>
> The listen (http://listengnome.free.fr/) does this, but it doesn't use
> autotools...
>
> Can anyone help me?
> I've tried a lot to make this work, but with no success...
>
> Thanks,
> --
> Jonh Wendell Santana
> Analista de Sistemas
>
> http://www.bani.com.br
> MSN: [EMAIL PROTECTED]
> GTalk/Jabber: [EMAIL PROTECTED]
> Linux User #114432

Hi,

in listen project Makefile is shown how to make this thing. URL for SVN
view of Makefile for listen 0.4.3 is:

http://svn.sourceforge.net/viewvc/listengnome/releases/0.4.x/0.4.3/Makefile?view=markup

Cheers, Pavel

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to write special value to a config file with ConfigParser

2006-04-23 Thread pavel . starek
Hi,

I have tried this:


import ConfigParser
fp = file("test.conf","w+")
cp = ConfigParser.ConfigParser()
cp.add_section("Section1")
cp.set("Section1","Value1",12345)
cp.write(fp)


and works fine for me.

-- 
http://mail.python.org/mailman/listinfo/python-list