[PD] pyext on OSX

marius schebella marius.schebella at gmail.com
Sat Mar 3 01:30:30 CET 2007


Hi,
I am trying python for the first time on osx and somehow I have problems 
loading some libraries (for example urllib). maybe my script is wrong, 
but I cannot test it, because pd crashes when I import urllib.
marius.

import sys,urllib

print "Script initialized"

try:
	print "Script arguments: ",sys.argv
except:
	print


def printpage(arg):
	import urllib
	f = urllib.urlopen(arg)
	# Read from the object, storing the page's contents in 's'.
	s = f.read()
	f.close()
	print (s)




More information about the Pd-list mailing list