I want to get only the real path of the file selected without quotes and without the file extension
def newCall(self):
global rfile
rfile = QFileDialog.getOpenFileName(self, "Sélectionner une vidéo", "", "Video Files (*.mp4)")
self.lineEntry.setText(str(rfile))
print('Selected:', rfile)
When I run the code I will get this
Selected: ('C:/Users/user/Desktop/segmentation/comfort.mp4', 'Video Files (*.mp4)')
I need only this path
C:/Users/user/Desktop/segmentation/comfort.mp4