From 2cf87c114730e1f29632f7f7a20595191900e318 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 21 Sep 2023 17:42:49 +0100 Subject: [PATCH] Continue losing on Windows --- Lib/gftools/builder/operations/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/gftools/builder/operations/__init__.py b/Lib/gftools/builder/operations/__init__.py index 27abc7218..c40ae79d6 100644 --- a/Lib/gftools/builder/operations/__init__.py +++ b/Lib/gftools/builder/operations/__init__.py @@ -40,7 +40,10 @@ def convert_dependencies(self, graph): def write_rules(cls, writer): name = cls.__module__.split(".")[-1] writer.comment(name + ": " + cls.description) - writer.rule(name, cls.rule + " $stamp") + if os.name == 'nt': + writer.rule(name, "cmd /c " + cls.rule + " $stamp") + else: + writer.rule(name, cls.rule + " $stamp") writer.newline() @property