I don't have a clue on where to look for a solution to this. Basically i want to make a file that can be "opened with" a python script. The directory of the opened file will be stored as a variable in the script. Here's what I mean by "Open With": 
Sorry if I'm not too good at describing this.
.phktestfile withc:\some\path\phktestrunner.pyor you want to open it with onlypython?.phktestwith the Python FILE, not Python itself. It would be nice if I could store the full path of the.phktestfile being opened as a variable. i.e.C:\!PythonCode2\runfileswith\test.phktest.pyextension.