Re: [python-win32] win32api.FindFiles hangs

2018-12-05 Thread ckkart
Works just fine on my windows7 machine with python2.7 64bit and pywin32-221 It yields results for both existing and non existing files. Christian Am 2018-12-05 01:20, schrieb ross.boy...@ucsf.edu: win32api.FindFiles() works when the argument is "*" or "*.py". It works, in the sense of returni

Re: [python-win32] win32api.FindFiles hangs (was COM registration hangs up: 32 bit Python 3.7 on 64 bit Win 7)

2018-12-05 Thread Tim Roberts
Boylan, Ross wrote: Is this some kind of string conversion issue? My installation is borked? Manual debugging statements show sys.argv[0] is 'BSTImport.py'. win32api.FindFiles('BSTImport.py') in a python 3.7 shell (32 bit) hangs. That's quite bizarre.  The code for win32api.FindFiles is str

Re: [python-win32] win32api.FindFiles hangs

2018-12-05 Thread Boylan, Ross
The problem doesn't seem to be python-specific; it appears the underlying FindNext function in the Windows API just keeps returning the same file name instead of moving on. In VBA in Access 2010: Public Sub test2(pattern) Dim fn As String fn = Dir$(pattern) Do While fn <> ""

Re: [python-win32] win32api.FindFiles hangs (was COM registration hangs up: 32 bit Python 3.7 on 64 bit Win 7)

2018-12-05 Thread Boylan, Ross
Yes, the directory is a net share. On a local hard drive I do not experience this problem. If I ask for *.py I get a list back that includes the file. If I ask for "BSTI*" I get back a list of 1 element, the file. But if I ask for "BSTImport.py" it hangs. My experiments with Dir$() in Visua