scripts/install.py

branch
eric7-maintenance
changeset 10733
d96c69a235fc
parent 10694
f46c1e224e8a
parent 10716
11cdcc824469
child 10814
ba20efe10336
diff -r 161fdb080c76 -r d96c69a235fc scripts/install.py
--- a/scripts/install.py	Wed Apr 24 10:14:44 2024 +0200
+++ b/scripts/install.py	Sun Jun 02 09:51:20 2024 +0200
@@ -219,12 +219,12 @@
     @param dst destination file name
     @type str
     """
-    if os.path.exists(os.path.join("eric", "src", "eric7", "UI", "Info.py")):
+    if os.path.exists(os.path.join("eric", "src", "eric7", "__version__.py")):
         # Installing from installer archive
-        from eric.src.eric7.UI.Info import Version  # noqa: I101, I102
-    elif os.path.exists(os.path.join("src", "eric7", "UI", "Info.py")):
+        from eric.src.eric7.__version__ import Version  # noqa: I101, I102
+    elif os.path.exists(os.path.join("src", "eric7", "__version__.py")):
         # Installing from source tree
-        from src.eric7.UI.Info import Version  # noqa: I101, I102
+        from src.eric7.__version__ import Version  # noqa: I101, I102
     else:
         Version = "Unknown"
 
@@ -1231,12 +1231,12 @@
         os.path.join(directories["icns"], "eric.icns"),
     )
 
-    if os.path.exists(os.path.join("eric", "eric7", "UI", "Info.py")):
+    if os.path.exists(os.path.join("eric", "eric7", "__version__.py")):
         # Installing from archive
-        from eric.eric7.UI.Info import CopyrightShort, Version  # noqa: I101, I102
-    elif os.path.exists(os.path.join("eric7", "UI", "Info.py")):
+        from eric.eric7.__version__ import CopyrightShort, Version  # noqa: I101, I102
+    elif os.path.exists(os.path.join("eric7", "__version__.py")):
         # Installing from source tree
-        from eric7.UI.Info import CopyrightShort, Version  # noqa: I101
+        from eric7.__version__ import CopyrightShort, Version  # noqa: I101
     else:
         Version = "Unknown"
         CopyrightShort = "(c) 2002 - 2024 Detlev Offenbach"

eric ide

mercurial