How to use current file as parameter to run configuration in pycharm

I want to create custom startup options, but I can't figure out how to get the current file name as a parameter ...

I would like to do something like this:

py.test -m mymarker %f

autopep8 %f

where %f is the current file name.

+6
source share

All Articles