I want to create custom run configurations, but i cannot 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.
The answer by Ctrl+C already hints at $FileName$ and at least in the current version 2020.2 of PyCharm this works in Run Configurations.
Python
Parameters field you can simply use macros like $FileName$ or $FilePath$. Or click on the + at the right end for a full listShift+F10 by default while your target file is openedIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With