By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,760 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,760 IT Pros & Developers. It's quick & easy.

Python project solicitation

P: n/a
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
Share this Question
Share on Google+
2 Replies

P: n/a

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

P: n/a
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.