<filename>pyqt5/getfilepath.py
import os
a = open('getfilepath.py')
b = os.path.realpath(a.name)
print(b)
<filename>pyqt5/getfilepath.py
import os
a = open('getfilepath.py')
b = os.path.realpath(a.name)
print(b)