File reading across network (windows)
Hello, Suppose I have a Vista machine called VISTA and an XP machine called XP in a workgroup named WORKGROUP. Physically they're connected to a router and I can see lists of public and shared files on each of them. How do I address these for IO? A search suggested that the form open(r"\\server\folder\folder"), but I tried many combinations guessing what it wants for that path in my case (r"\\WORKGROUP\VISTA", "\\VISTA\PUBLIC", etc), and none have worked so far. Thanks! -- http://mail.python.org/mailman/listinfo/python-list
Using Timer or Scheduler in a Class
I'd like a class method to fire every n seconds. I tried this: class Timed: def.__init__(self): self.t = Timer(3, self.dothing) def.start(self): self.t.start() def.dothing(self): print "Doing Thing" s = new Timed() s.start() And: class Scheduled: def.__init__(self): self.s = sched.scheduler(time.time, time.sleep) self.s.enter(3, 1, self.sync, ()) def.start(self): self.t.start() def.dothing(self): print "Syncing" s = new Scheduled() s.start() Both run once and end. I'm obviously missing something here. Thanks, Justin -- http://mail.python.org/mailman/listinfo/python-list