Re: Code works in current dir only?

2008-08-15 Thread Dieter Deyke
r(n): > print "[d]", n > elif os.path.isfile(n): > print "[f]", n > else: > print "[?]", n > > # this works > if __name__ == "__main__": > collectinfo(".") > >

Re: pdf to text

2007-01-25 Thread Dieter Deyke
th cygwin on a regular basis without any problem. Your program above should read: sout = os.popen('pdftotext "%s" - ' % (f,)) -- Dieter Deyke A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? -- http://mail.python.org/mailman/listinfo/python-list

Re: web-based SSH

2006-10-25 Thread Dieter Deyke
sh+applet http://www.appgate.com/products/80_MindTerm/110_MindTerm_Download/ -- Dieter Deyke mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Vs lbh pna ernq guvf, lbh unir jnl gbb zhpu gvzr. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hardlinks on NTFS

2006-09-17 Thread Dieter Deyke
hat lets me create links in a platform > independent way? > > bye > wildemar This is my solution: import os def CreateHardLink(src, dst): import ctypes if not ctypes.windll.kernel32.CreateHardLinkA(dst, src, 0): raise OSError os.link = CreateHardLink -- Dieter Deyke mailto:

Re: Text to MP3 using pyTTS - Non-programmer question

2006-08-18 Thread Dieter Deyke
n += 1 data = fi.readframes(600 * framerate) if not data: break fo = wave.open("tmp.wav", "w") fo.setparams((nchannels, sampwidth, framerate, 0, comptype, compname)) fo.writeframes(data) fo.close() # os.system(&#x

Re: Accessing Yahoo Mail withtout POP

2006-08-08 Thread Dieter Deyke
"T" <[EMAIL PROTECTED]> writes: > Is there a way to access yahoo mail via its web interface? If so, can > someone give some pointers? This works for me: http://www.ypopsemail.com/ -- Dieter Deyke mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Vs lbh pna ernq guvf,

Re: How can I refresh the windows desktop using the python script?

2005-12-13 Thread Dieter Deyke
KWALLPAPER = 20 ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, "", 0) -- Dieter Deyke mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Vs lbh pna ernq guvf, lbh unir jnl gbb zhpu gvzr. -- http://mail.python.org/mailman/listinfo/python-list