Re: Find a file

2016-07-02 Thread tdsperth
Hi Thanks for your suggestions - I did get it to work with some os.path calls and using flask get files. Cheers Colin -- https://mail.python.org/mailman/listinfo/python-list

Re: Find a file

2016-06-30 Thread Karim
On 01/07/2016 02:51, tdspe...@gmail.com wrote: Hi All I have a web app that allows me to choose a file - the file name is returned but I need to find the path to the file so I can add it as an attachment to a email. The files I am returning could be in different folders/directories. Thanks

Find a file

2016-06-30 Thread tdsperth
Hi All I have a web app that allows me to choose a file - the file name is returned but I need to find the path to the file so I can add it as an attachment to a email. The files I am returning could be in different folders/directories. Thanks for any help. Cheers Colin -- https://mail.pyt

Re: How can i find a file size on the web ?

2007-12-02 Thread Adonis Vargas
Abandoned wrote: > Hi.. > Can i find a file size witdhout download? > For example: www.roche.com/rochea_z_sp.pdf > How can i find its size with python ? > I'm sorry for my bad english. Typically you would just do an HTTP HEAD request in order to get information about the file

Re: How can i find a file size on the web ?

2007-12-02 Thread Dan Upton
On Dec 2, 2007 11:55 AM, Abandoned <[EMAIL PROTECTED]> wrote: > Hi.. > Can i find a file size witdhout download? > For example: www.roche.com/rochea_z_sp.pdf > How can i find its size with python ? When you send an HTTP request, most servers will respond with the content len

How can i find a file size on the web ?

2007-12-02 Thread Abandoned
Hi.. Can i find a file size witdhout download? For example: www.roche.com/rochea_z_sp.pdf How can i find its size with python ? I'm sorry for my bad english. -- http://mail.python.org/mailman/listinfo/python-list

RE: How to find a file or a device is currently used by which processor which program ?

2006-10-11 Thread Tim Golden
[EMAIL PROTECTED] | When I want to uninstall my usb disk on windows, the | operating systems | sometimes tells me the device is being used by other program. But I | can't find which program is using it. Can I do this using python ? This is really one of those questions that could better be rep

Re: How to find a file or a device is currently used by which process or which program ?

2006-10-10 Thread Gabriel Genellina
At Tuesday 10/10/2006 05:17, [EMAIL PROTECTED] wrote: When I want to uninstall my usb disk on windows, the operating systems sometimes tells me the device is being used by other program. But I can't find which program is using it. Can I do this using python ? I don't know with Python, but Proc

How to find a file or a device is currently used by which process or which program ?

2006-10-10 Thread [EMAIL PROTECTED]
Hi, When I want to uninstall my usb disk on windows, the operating systems sometimes tells me the device is being used by other program. But I can't find which program is using it. Can I do this using python ? Thanks. xiaojf -- http://mail.python.org/mailman/listinfo/python-list

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I see. I once was a VB programmer. In VB, the current directory is always set to where the module locates before it runs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I see. I once was a VB programmer. In VB, the current directory is always set to where the module locates before it runs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Fredrik Lundh
"Sullivan WxPyQtKinter" wrote: > In IDLE, this py file work all right. But if I launch python > interpretor in the command shell like this: > > > C:\Documents and Settings\Xiaozhong Zheng>python "C:\Documents and > Settings\Xiaozhong Zheng\Desktop\t.py" > > The interpretor would not find the file.

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
Sorry, I mistyped the line. In the program it IS: f=open("ticket.txt"), no '\' included. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Fredrik Lundh
"Sullivan WxPyQtKinter" wrote: > I use python in Windows XP platform. I find that if I write a .py file > in a directory, such as windows desktop, in which a file named > 'ticket.txt' is located: > > f=open("\ticket.txt") > print f.read() "\t" is a tab character: >>> print '\ticket.txt'

Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I use python on Windows XP platform. I find that if I write a .py file in a directory, such as windows desktop, in which a file named 'ticket.txt' is located: f=open("ticket.txt") print f.read() In IDLE, this py file work all right. But if I launch python interpretor in the command shell like th

Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I use python in Windows XP platform. I find that if I write a .py file in a directory, such as windows desktop, in which a file named 'ticket.txt' is located: f=open("\ticket.txt") print f.read() In IDLE, this py file work all right. But if I launch python interpretor in the command shell like th