From 5b6e410e04b48c0fd62e954fafa220ef301d2c70 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 21 Apr 2024 00:29:50 -0700 Subject: [PATCH] gnulib-tool.py: Make temporary directories recognizable. * pygnulib/GLConfig.py (GLConfig.__init__): Pass the 'glpy' prefix to mkdtemp. --- ChangeLog | 6 ++++++ pygnulib/GLConfig.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5a10b83411..b3cef64936 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-04-21 Collin Funk + + gnulib-tool.py: Make temporary directories recognizable. + * pygnulib/GLConfig.py (GLConfig.__init__): Pass the 'glpy' prefix to + mkdtemp. + 2024-04-21 Bruno Haible gnulib-tool.sh: In --create-testdir, just warn about a bad module name. diff --git a/pygnulib/GLConfig.py b/pygnulib/GLConfig.py index 19611b823c..05947e8ed3 100644 --- a/pygnulib/GLConfig.py +++ b/pygnulib/GLConfig.py @@ -87,7 +87,7 @@ class GLConfig: errors: bool | None = None) -> None: '''Create new GLConfig instance.''' self.table = dict() - self.table['tempdir'] = tempfile.mkdtemp() + self.table['tempdir'] = tempfile.mkdtemp(prefix='glpy') # Check and store the attributes. # Remove trailing slashes from the directory names. This is necessary # for m4base (to avoid an error in func_import) and optional for the -- 2.39.5