472,146 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Python project solicitation

Hello All,

I was wondering if anyone would be interested in improving a module I
quickly hacked together this past Sunday: pswrdgen.py

It is a semantic password generator that uses WordNet 2.1, random
capitalization, and character swapping.
http://code.google.com/p/pswrdgen/

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.

And on a side note, I see a bunch of Python newbies here. I really
recommend "Python Phrasebook" by Brad Dayley. This thing is small
enough to fit in your back pocket and lots of basic code phrases.
--
Later, Joe
Aug 21 '07 #1
2 987

On Aug 20, 9:35 pm, JoeSox <joe...@gmail.comwrote:
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

Aug 21 '07 #2
On 8/21/07, Greg Copeland <gt********@gmail.comwrote:
>
On Aug 20, 9:35 pm, JoeSox <joe...@gmail.comwrote:
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.
Excellent. I will look at this. Being a hobbyist programmer, I am use
to writing code just for a Windows environment. I've only been using
Python for a year or so and I never could get into Java.

--
Later, Joe
Aug 21 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by John Ladasky | last post: by
38 posts views Thread by kbass | last post: by
36 posts views Thread by Andrea Griffini | last post: by
267 posts views Thread by Xah Lee | last post: by
158 posts views Thread by Giovanni Bajo | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.