Python project solicitation

J

JoeSox

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.
 
G

Greg Copeland

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
 
J

JoeSox

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top