How to reflect variables like sysconfdir in an executable.

2004-02-15 Thread Hans Deragon
Greetings. I am working on a project where the executable is a Python script, so no building is required. However, since it has to read a configuration file, like /etc/file, my script needs to be modified so that the sysconfdir directory is reflected somewhere. Are there any means with

Re: How to reflect variables like sysconfdir in an executable.

2004-02-15 Thread Bob Friesenhahn
On Sun, 15 Feb 2004, Hans Deragon wrote: I am working on a project where the executable is a Python script, so no building is required. However, since it has to read a configuration file, like /etc/file, my script needs to be modified so that the sysconfdir directory is reflected

Re: How to reflect variables like sysconfdir in an executable.

2004-02-15 Thread Hans Deragon
Bob Friesenhahn wrote: On Sun, 15 Feb 2004, Hans Deragon wrote: I am working on a project where the executable is a Python script, so no building is required. However, since it has to read a configuration file, like /etc/file, my script needs to be modified so that the sysconfdir directory is

Re: How to reflect variables like sysconfdir in an executable.

2004-02-15 Thread Hans Deragon
Bob Friesenhahn wrote: On Sun, 15 Feb 2004, Hans Deragon wrote: Thanks. It almost works. The problem is that it substitute @datadir@ with ${prefix}/share. That is not right. ${prefix} must be expanded. Python does not understand ${prefix}. Any suggestions? In should be something like

Re: How to reflect variables like sysconfdir in an executable.

2004-02-15 Thread Bob Friesenhahn
On Sun, 15 Feb 2004, Hans Deragon wrote: Thanks. It almost works. The problem is that it substitute @datadir@ with ${prefix}/share. That is not right. ${prefix} must be expanded. Python does not understand ${prefix}. Any suggestions? In should be something like /usr/share in my script.