1693 installInfo = installInfo2 |
1693 installInfo = installInfo2 |
1694 changed = True |
1694 changed = True |
1695 else: |
1695 else: |
1696 filename = os.path.join(getConfig("ericDir"), |
1696 filename = os.path.join(getConfig("ericDir"), |
1697 "eric7installpip.json") |
1697 "eric7installpip.json") |
1698 if os.path.exists(filename): |
1698 if ( |
|
1699 os.path.exists(filename) and |
|
1700 os.path.getmtime(filename) > |
|
1701 os.path.getmtime(installInfoFile) |
|
1702 ): |
1699 # eric was updated via pip (i.e. eric-ide) |
1703 # eric was updated via pip (i.e. eric-ide) |
1700 # just update the installation date and time |
1704 # just update the installation date and time |
1701 installDateTime = datetime.datetime.now(tz=None) |
1705 installDateTime = datetime.datetime.now(tz=None) |
1702 installInfo["installed_on"] = installDateTime.strftime( |
1706 installInfo["installed_on"] = installDateTime.strftime( |
1703 "%Y-%m-%d %H:%M:%S") |
1707 "%Y-%m-%d %H:%M:%S") |