def dropEvent(self, event):
    for url in event.mimeData().urls():
        path = url.toLocalFile().toLocal8Bit().data()
if os.path.isfile(path):
    pass
PyQt: Getting file name for file dropped in app