mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-30 15:23:10 +00:00
use f-strings in module utils (#10901)
* use f-strings in module utils * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * remove unused imports --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -25,7 +25,7 @@ class PythonRunner(CmdRunner):
|
||||
path_prefix.append(os.path.join(venv, "bin"))
|
||||
if environ_update is None:
|
||||
environ_update = {}
|
||||
environ_update["PATH"] = "%s:%s" % (":".join(path_prefix), os.environ["PATH"])
|
||||
environ_update["PATH"] = f"{':'.join(path_prefix)}:{os.environ['PATH']}"
|
||||
environ_update["VIRTUAL_ENV"] = venv
|
||||
|
||||
python_cmd = [self.python] + _ensure_list(command)
|
||||
|
||||
Reference in New Issue
Block a user