[PyQt] QFileSystemWatch and Network Drives
bhclowers
bhclowers at gmail.com
Mon Jan 25 23:55:14 GMT 2010
So I'm trying to watch a network drive so that I can trigger a function. Any
ideas how to get this to work using QFileSystemWatcher?
Any help would be appreciated.
My ipython example that fails:
from PyQt4 import QtGui, QtCore
import os
watcher = QtCore.QFileSystemWatcher()
#mapped drive on win32
nPath = 'Z:/Data'
os.path.isdir(nPath)
#The following will Fail
watcher.addPath(nPath)
#as will this
watcher.addPath(QtCore.QString(nPath))
--
View this message in context: http://old.nabble.com/QFileSystemWatch-and-Network-Drives-tp27315874p27315874.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt
mailing list