SF.net SVN: docutils:[9790 ] trunk/docutils/docutils/f rontend.py

aa-turner--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9790
          http://sourceforge.net/p/docutils/code/9790
Author:   aa-turner
Date:     2024-07-31 03:58:36 +0000 (Wed, 31 Jul 2024)
Log Message:
-----------
Fix ``make_paths_absolute()`` on Python 3.9 on Windows

Modified Paths:
--------------
    trunk/docutils/docutils/frontend.py

Modified: trunk/docutils/docutils/frontend.py
===================================================================
--- trunk/docutils/docutils/frontend.py	2024-07-31 03:41:21 UTC (rev 9789)
+++ trunk/docutils/docutils/frontend.py	2024-07-31 03:58:36 UTC (rev 9790)
@@ -390,6 +390,8 @@
         base_path = Path.cwd()
     else:
         base_path = Path(base_path)
+        if sys.platform == 'win32' and sys.version_info[:2] <= (3, 9):
+            base_path = base_path.absolute()
     for key in keys:
         if key in pathdict:
             value = pathdict[key]

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.