Python project solicitation
Greg Copeland
gtcopeland at gmail.com
Tue Aug 21 09:09:12 EDT 2007
On Aug 20, 9:35 pm, JoeSox <joe... at gmail.com> wrote:
> I must say this thing is pretty cool. I had a coworker try it out and
> he ran into problems getting it to run on his Linux OS. So I am
> really looking for some non-Windows developers to take a look at it.
> All of the info is at the project site above.
> Thanks.
>
I looked at it real quick. You need to use os.path.join for your file
paths. You also need to use sys.platform for windows specific
processing. For example:
if sys.platform == 'Win32':
FS_ROOT = 'C:'
else:
FS_ROOT = '/'
WORDNETPATH=os.path.join( FS_ROOT, 'WordNet', '2.1', 'dict' )
So on and so on. You wrote it very MSWin centric so it is not a
surprise it has trouble of on other platforms. All of your file
references need to be adjusted as above using os.path.join.
Keep in mind I only looked at it real quick. Those appear to be the
cross platform deal killers. Short of something I missed (could
have), it should work find on most any other platform once you take
out the Windows-isms.
Greg
More information about the Python-list
mailing list