Media player in python
I have installed all things properly but I am getting error in line numer 7 as:
dirName = os.path.dirname(os.path.abspath(__file__))
NameError: name '__file__' is not defined
. I want to test the code given in this blog; <a href="https://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/" target="_blank" rel="nofollow noopener noreferrer">wxPython: Creating a Simple Media Player - Mouse Vs Python</a>
so will someone help me...I am beginner in python programming so I want to learn it.I have successfully run other simple programs in my windows 7 PC.
dirName = os.path.dirname(os.path.abspath(__file__))
NameError: name '__file__' is not defined
. I want to test the code given in this blog; <a href="https://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/" target="_blank" rel="nofollow noopener noreferrer">wxPython: Creating a Simple Media Player - Mouse Vs Python</a>
so will someone help me...I am beginner in python programming so I want to learn it.I have successfully run other simple programs in my windows 7 PC.
0