Made a little change to prvent potential issues handling the start argument. eric7

Sat, 02 Nov 2024 19:28:14 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 02 Nov 2024 19:28:14 +0100
branch
eric7
changeset 11032
84a66daa5e34
parent 11031
9f75293fcd57
child 11033
6b197c3389f7

Made a little change to prvent potential issues handling the start argument.

src/eric7/EricWidgets/EricSingleApplication.py file | annotate | diff | comparison | revisions
src/eric7/UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/src/eric7/EricWidgets/EricSingleApplication.py	Sat Nov 02 17:25:32 2024 +0100
+++ b/src/eric7/EricWidgets/EricSingleApplication.py	Sat Nov 02 19:28:14 2024 +0100
@@ -120,7 +120,7 @@
         @type argparse.Namespace
         """
         for filename in args.file_or_project:
-            ext = os.path.normcase(os.path.splitext(filename)[1])
+            ext = os.path.splitext(filename)[1].lower()
 
             if ext in (".epj",):
                 self.__openProject(filename)
--- a/src/eric7/UI/UserInterface.py	Sat Nov 02 17:25:32 2024 +0100
+++ b/src/eric7/UI/UserInterface.py	Sat Nov 02 19:28:14 2024 +0100
@@ -1677,7 +1677,7 @@
         opens = 0
         for filename in args.file_or_project:
             try:
-                ext = os.path.normcase(os.path.splitext(filename)[1])
+                ext = os.path.splitext(filename)[1].lower()
             except IndexError:
                 ext = ""
 

eric ide

mercurial