scripts/install.py

changeset 7807
5514ca6a62ca
parent 7806
b346755b09a1
child 7809
f5a61d073100
--- a/scripts/install.py	Mon Oct 19 20:02:01 2020 +0200
+++ b/scripts/install.py	Wed Oct 21 20:00:57 2020 +0200
@@ -22,6 +22,7 @@
 import io
 import json
 import shlex
+import datetime
 
 # Define the globals.
 progName = None
@@ -1308,6 +1309,7 @@
     """
     global installInfo, cfg
     
+    installDateTime = datetime.datetime.now(tz=None)
     try:
         installInfo["sudo"] = os.getuid() == 0
     except AttributeError:
@@ -1319,11 +1321,16 @@
     installInfo["virtualenv"] = installInfo["eric"].startswith(
         os.path.expanduser("~"))
     installInfo["installed"] = True
+    installInfo["installed_on"] = installDateTime.strftime(
+        "%Y-%m-%d %H:%M:%S")
     installInfo["guessed"] = False
     installInfo["edited"] = False
     installInfo["pip"] = False
     installInfo["remarks"] = ""
-
+    installInfo["exe_edited"] = False
+    installInfo["argv_edited"] = False
+    installInfo["eric_edited"] = False
+    # TODO: add current path (os.getcwd())
 
 def pipInstall(packageName, message):
     """

eric ide

mercurial