From ddaa8a4f87e13cd952828ed3e3b070dec118468e Mon Sep 17 00:00:00 2001 From: Shawn Davis Date: Sat, 15 Aug 2020 13:04:44 -0400 Subject: [PATCH] Added user expansion on template source path. --- scripttease/library/commands/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripttease/library/commands/templates.py b/scripttease/library/commands/templates.py index 1f5597e..b4b6bb6 100644 --- a/scripttease/library/commands/templates.py +++ b/scripttease/library/commands/templates.py @@ -65,7 +65,7 @@ class Template(Command): self.pythonic = pythonic self.line_by_line = lines self.locations = kwargs.pop("locations", list()) - self.source = source + self.source = os.path.expanduser(source) self.target = target # Remaining kwargs are added to the context.