Re: library.gnome.org
- From: Olav Vitters <olav bkor dhs org>
- To: Frederic Peters <fpeters 0d be>
- Cc: gnome-web-list gnome org
- Subject: Re: library.gnome.org
- Date: Tue, 31 Jul 2007 18:30:45 +0200
On Tue, Jul 31, 2007 at 11:42:02AM +0200, Frederic Peters wrote:
> Olav Vitters wrote:
>
> > > Do you mean you would prefer calls to xsltproc to be done via os.spawn
> > > instead of os.system ? I can change this.
> >
> > Yes. This avoids shell escaping issues. Perhaps use subprocess instead
> > of system (so you can easily capture the error messages).
>
> Ok, I changed to use subprocess.call which was really easy [1]; and
> imported my code into subversion, I even managed to keep history for
> XSLT and CSS files (after I doubted subversion capability). I moved
> previous code to branches/library-web-goran/.
$ ./src/lgo.py
Traceback (most recent call last):
File "./src/lgo.py", line 826, in ?
Lgo()
File "./src/lgo.py", line 234, in __init__
self.overlay = Overlay(os.path.join(self.data_dir, 'overlay.xml'))
File "./src/lgo.py", line 83, in __init__
tree = ET.parse(overlay_file)
File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line 859, in parse
tree.parse(source, parser)
File "/usr/lib/python2.4/site-packages/elementtree/ElementTree.py", line 576, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: './src/../data/overlay.xml'
I assume this is due to the 'configure and make are used to build
translations.'. How often should this be run? Every time there is a commit to
library-web? Is
./configure && make
enough? Do I need some prefix stuff (for /usr/local/www/library-web)?
(think I need to run autogen.sh actually)
--
Regards,
Olav
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]