Re: python file call

2009-05-12 Thread Kornel Benko
Am Dienstag, 12. Mai 2009 schrieb José Matos: > On Sunday 10 May 2009 11:50:47 Kornel Benko wrote: > > Is it ok to commit (trunk only)? > > The code is compatible with the previous version so I don't see why not. :-) > > > I already adapted the cmake build to this new parameter (but not commited

Re: python file call

2009-05-12 Thread José Matos
On Sunday 10 May 2009 11:50:47 Kornel Benko wrote: > Is it ok to commit (trunk only)? The code is compatible with the previous version so I don't see why not. :-) > I already adapted the cmake build to this new parameter (but not commited > yet). It will help to not exceed the command line length

Re: python file call

2009-05-10 Thread Kornel Benko
Am Samstag 09 Mai 2009 schrieb Kornel Benko: > Am Samstag 09 Mai 2009 schrieb José Matos: > > Like the following patch (untested)? > > Test was ok with the option -s. > > But I was unable to find out how to use --src_file. > > Kornel The test is valid now for "--src_file" too. This lyx_pot.p

Re: python file call

2009-05-09 Thread Kornel Benko
Am Samstag 09 Mai 2009 schrieb José Matos: > Like the following patch (untested)? Test was ok with the option -s. But I was unable to find out how to use --src_file. Kornel signature.asc Description: This is a digitally signed message part.

Re: python file call

2009-05-09 Thread Kornel Benko
Am Samstag 09 Mai 2009 schrieb José Matos: .. > > Hi José > > I prefer an extra parameter like > >   src_files= > > to the perl script. If there is no such parameter, then proceed as > > before. So we don't have a need to change every tool which uses this > > python script. > > Like the followi

Re: python file call

2009-05-09 Thread José Matos
On Saturday 09 May 2009 07:13:51 Kornel Benko wrote: > > Hi José > I prefer an extra parameter like > src_files= > to the perl script. If there is no such parameter, then proceed as before. > So we don't have a need to change every tool which uses this python script. Like the following patch

Re: python file call

2009-05-08 Thread Kornel Benko
Am Samstag 09 Mai 2009 schrieb Kornel Benko: ... > to the perl script. If there is ... I meant python of course Kornel signature.asc Description: This is a digitally signed message part.

Re: python file call

2009-05-08 Thread Kornel Benko
Am Samstag 09 Mai 2009 schrieb José Matos: > On Thursday 07 May 2009 20:12:39 Peter Kümmel wrote: > > Thanks Jose, I also found the place we the files should be read, but I > > don't know python ;) > > > > > You get the name of the file in args and then you need to read the file > > > names from th

Re: python file call

2009-05-08 Thread José Matos
On Thursday 07 May 2009 20:12:39 Peter Kümmel wrote: > > Thanks Jose, I also found the place we the files should be read, but I > don't know python ;) > > > You get the name of the file in args and then you need to read the file > > names from there. > > > > input_files = [] > > for l in open(args[

Re: python file call

2009-05-07 Thread Peter Kümmel
José Matos wrote: > On Thursday 07 May 2009 19:11:50 Peter Kümmel wrote: >> OK, I feared it. >> >> Peter > > FWIW the change is really minimal and it is confined to the last chunk. > > if __name__ == '__main__': > Thanks Jose, I also found the place we the files should be read, but I don't know

Re: python file call

2009-05-07 Thread José Matos
On Thursday 07 May 2009 19:11:50 Peter Kümmel wrote: > OK, I feared it. > > Peter FWIW the change is really minimal and it is confined to the last chunk. if __name__ == '__main__': You get the name of the file in args and then you need to read the file names from there. input_files = [] for l

Re: python file call

2009-05-07 Thread Peter Kümmel
Guenter Milde wrote: > On 2009-05-03, Peter Kümmel wrote: >> Is it possible to call a python file with a file instead of command >> line parameters? > > Not without a change to the python file or a wrapper. > > You can of course define an option that expects a file, reads it and > puts the conte

Re: python file call

2009-05-03 Thread Guenter Milde
On 2009-05-03, Peter Kümmel wrote: > Is it possible to call a python file with a file instead of command > line parameters? Not without a change to the python file or a wrapper. You can of course define an option that expects a file, reads it and puts the content either in argv or directly in th

python file call

2009-05-03 Thread Peter Kümmel
Is it possible to call a python file with a file instead of command line parameters? lyx_pot.py is called on Windows with too long parameter list. Instead of calling pyhton lyx_pot.py ... (line with length > 8000) we need something like python the_script_with_parameters.py or a lyx_pot.py whic