]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Make temporary directories recognizable.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 21 Apr 2024 07:29:50 +0000 (00:29 -0700)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Apr 2024 11:40:27 +0000 (13:40 +0200)
* pygnulib/GLConfig.py (GLConfig.__init__): Pass the 'glpy' prefix to
mkdtemp.

ChangeLog
pygnulib/GLConfig.py

index 5a10b8341196ce93cc54c757341677f0a17b4866..b3cef64936e8ddcf59663b59526a0cebe9a55766 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-21  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Make temporary directories recognizable.
+       * pygnulib/GLConfig.py (GLConfig.__init__): Pass the 'glpy' prefix to
+       mkdtemp.
+
 2024-04-21  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.sh: In --create-testdir, just warn about a bad module name.
index 19611b823c830ffd11deaaef844c5c7cbe1b5133..05947e8ed3a12e584e46dee6237c20a9204c4c31 100644 (file)
@@ -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