|
From: Neil H. <ne...@sc...> - 2001-09-01 07:26:01
|
> The samples launcher (samples.py) seems to be working fine on Windows, but
I
> can't test it on Unix, so I don't know if the os.spawnv code below is
> correct. If someone in Unix land can confirm that it works or provide a
> better solution that would be great.
This works fine for me:
import os
os.system('minimal/minimal.py -s')
On the top of the files, either of these work for me:
#!/usr/bin/env python
or
#!/usr/bin/python
In res.py,
self.dictionary = eval( open( rsrcFileName ).read().replace('\r\n',
'\n') )
makes the code work on Linux without needing to fix up the resource
files. It still works on Windows with this change but I'm not sure whether
Macs need '\r; line endings.
Neil
|