Re: Portable python question.

2004-05-19 Thread Angus Leeming
Jose' Matos wrote: >> > This can be done earlier in the candidates stage, but you get >> > the >> > idea. :-) >> >> Sorry, I don't follow. > > Conceptually is the program name that is different, so this > functions does > not need to changed if you replace only the candidate list depending

Re: Portable python question.

2004-05-19 Thread Jose' Matos
On Wednesday 19 May 2004 10:00, Angus Leeming wrote: > > > This can be done earlier in the candidates stage, but you get the > > idea. :-) > > Sorry, I don't follow. Conceptually is the program name that is different, so this functions does not need to changed if you replace only the candidat

Re: Portable python question.

2004-05-19 Thread Angus Leeming
Jose' Matos wrote: > Roughly the code should look like this: > if os.name == "nt": > full_path = os.path.join(directory, prog + ".exe") > else: > full_path = os.path.join(directory, prog) Thank you. > This can be done earlier in the candidates stage, but you get the > idea. :-) Sorry, I don't

Re: Portable python question.

2004-05-19 Thread Jose' Matos
On Wednesday 19 May 2004 09:05, Angus Leeming wrote: > Jose, > > def find_exe(candidates, path): > for prog in candidates: > for directory in path: > - full_path = os.path.join(directory, prog) > + full_path = os.path.join(directory, prog

Portable python question.

2004-05-19 Thread Angus Leeming
Jose, I've been getting Paul Rubin to test a python version of the "instant preview for lyx 1.3.x" script. Win32 users currently don't have access to this eye candy, mainly because so many unix utilities need to be installed first and, crucially, all these utilities need to work. Amazing how m