Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for MacUsers

Greetings all, I'm trying to crate some symbolic links, provided the link doesn't already exist. To do that, this is what I've done: [icode]if not os.path.islink(dst_dir): os.symlink("src_dir", "dst_dir")[/icode] but still I'm getting [icode]OSError: [Errno 17] File exists[/icode] for an existing link. Any idea what am I missing? another question, how …

Member Avatar for trsarg
0
2K
Member Avatar for MacUsers

Dear all, I was trying out OptionParser() and didn't quite understand who to use it correctly. This is my sample script: [code=python]#!/bin/env python from time import strftime from calendar import month_abbr from optparse import OptionParser # Set the CL options parser = OptionParser() usage = "usage: %prog [options] arg1 arg2" …

Member Avatar for MacUsers
0
206
Member Avatar for MacUsers

Hi there, I was wondering if anyone can give some advise/tips on this. My goal is to figure out the broadcast address. The way I think I should do is: [LIST] [*]get/detect the IP address and the subnet mask or CIDR [*]convert the mask to binary form [*]count the number …

Member Avatar for MacUsers
0
1,000
Member Avatar for MacUsers

Hi there, I'm having this problem with using translate() - I have a line in my code like: [icode]k.translate(None,':.-')[/icode], being called from a function, which works flawlessly under v2.6.4 but throwing in TypeError when run under v2.5 [code]Traceback (most recent call last): File "./wakeONlan", line 94, in <module> WakeOnLan(k.translate(None,':.-')) TypeError: …

Member Avatar for MacUsers
0
134
Member Avatar for MacUsers

Greetings everyone!! First of all, I'm a python newbie; my apology in advance if I'm being silly with my question but I really hope some one can help me on this. I got myself a project (just to start) to read iTunes library .xml file - iTunes Music Library.xml - …

Member Avatar for Pupo
0
684