You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
even if not upgrading Python, the os.path.basename and os.path.splitext methods mentioned in those answers should be more platform-independent (in terms of handling how filename separators are expressed etc).
965ef19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your life can be even simpler if we advance the Python dependency from 3.1 => 3.4:
per https://stackoverflow.com/questions/678236/how-do-i-get-the-filename-without-the-extension-from-a-path-in-python
even if not upgrading Python, the os.path.basename and os.path.splitext methods mentioned in those answers should be more platform-independent (in terms of handling how filename separators are expressed etc).
965ef19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python 3.4 reached end of life in 2019, the GitHub action uses 3.10 and I've been successfully using 3.11 locally.
965ef19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry - was misreading 3.10 as 3.1! So better option already just available.
965ef19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, changed