Thanks Enrico that does seem to work on the file I have
using bin/python "%f" and %p as my working directory.
I can't however get a working version of a /bin/sh -c %p/bin/activate; python %f style virtualenv command. I have tried many versions but just can't get it working. This one finds activate and the file but fails.
/bin/sh -c /home/sayth/Projects/Test/bin/activate; python file1.py (in directory: /home/sayth/Projects/Test)
Traceback (most recent call last):
File "file1.py", line 3, in <module>
import django
ImportError: No module named django
Compilation failed.