Skip to content

Commit b04f7f8

Browse files
authored
Merge pull request #847 from cedricp/py_3_11
migrate to python 3.11
2 parents efc859b + d7f04ca commit b04f7f8

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Using the application in non expert mode should not be harmful for your vehicle
1818

1919
## `Cloning Source Code`
2020
### `Dependencies :`
21-
![python_3.10.x](icons/py3_engaged.png)
22-
* [Python 3.10](https://www.python.org/downloads/release/python-3105/)
21+
![python_3.11.x](icons/py3_engaged.png)
22+
* [Python 3.11](https://www.python.org/downloads/release/python-3110/)
2323
* [PyQt 5](https://pypi.org/project/PyQt5/)
2424
* [pyusb](https://pypi.org/project/pyusb/)
2525
* [pyserial](https://pypi.org/project/pyserial/)
@@ -92,6 +92,8 @@ Get the fully packaged installer here : [Release area](https://github.com/cedric
9292

9393
## Informations
9494

95+
DataBase not included, do not forget to install database as zip or full mode in to root clone repo.
96+
9597
Bugtracking here : https://github.com/cedricp/ddt4all
9698

9799
Happy CAN-Hacking :)

icons/py3_engaged.png

-191 KB
Loading

options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ def translator(filename):
4949
pass
5050

5151
# Set up message catalog access
52-
t = gettext.translation(filename, 'locale', fallback=True, codeset="utf-8")
52+
t = gettext.translation(filename, 'locale', fallback=True) # not ok in python 3.11.x, codeset="utf-8")
5353
return t.gettext

wininstaller.iss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ UsePreviousPrivileges=True
4949
//Source: "ecu.zip"; DestDir: "{app}"; Flags: onlyifdoesntexist skipifsourcedoesntexist
5050
Source: "*.py"; DestDir: "{app}"
5151
Source: "*.qss"; DestDir: "{app}"
52-
Source: "\Python39-32\*"; DestDir: "{app}\Python39"; Flags: ignoreversion recursesubdirs; Excludes: "*.pyc"
52+
Source: "\Python311\*"; DestDir: "{app}\Python311"; Flags: ignoreversion recursesubdirs; Excludes: "*.pyc"
5353
Source: "ddtplugins\*"; DestDir: "{app}\ddtplugins"; Flags: ignoreversion recursesubdirs; Excludes: "*.pyc"
5454
Source: "icons\*"; DestDir: "{app}\icons"; Flags: ignoreversion recursesubdirs
5555
Source: "address\*"; DestDir: "{app}\address"; Flags: ignoreversion recursesubdirs
@@ -60,6 +60,8 @@ Source: "json\*"; DestDir: "{app}\json"; Flags: ignoreversion recursesubdirs onl
6060
Type: filesandordirs; Name: "{app}\importlib"
6161
Type: filesandordirs; Name: "{app}\python27"
6262
Type: filesandordirs; Name: "{app}\Python38"
63+
Type: filesandordirs; Name: "{app}\Python39"
64+
Type: filesandordirs; Name: "{app}\Python310"
6365

6466
[Code]
6567
procedure AfterMyProgInstall;
@@ -77,8 +79,8 @@ Name: "{app}\vehicles"; Permissions: users-full
7779
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}";GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
7880

7981
[Icons]
80-
Name: "{group}\ddt4all"; Filename: "{app}\Python39\python.exe"; Parameters: """{app}\main.py"""; WorkingDir: "{app}"; IconFilename: "{app}\icons\obd.ico"
81-
Name: "{userdesktop}\ddt4all"; Filename: "{app}\Python39\python.exe"; Parameters: """{app}\main.py"""; WorkingDir: "{app}"; IconFilename: "{app}\icons\obd.ico"; Tasks: desktopicon
82+
Name: "{group}\ddt4all"; Filename: "{app}\Python311\python.exe"; Parameters: """{app}\main.py"""; WorkingDir: "{app}"; IconFilename: "{app}\icons\obd.ico"
83+
Name: "{userdesktop}\ddt4all"; Filename: "{app}\Python311\python.exe"; Parameters: """{app}\main.py"""; WorkingDir: "{app}"; IconFilename: "{app}\icons\obd.ico"; Tasks: desktopicon
8284

8385
[CustomMessages]
8486
en.AfterMyProgInstall=Do not forget to install database to %n%n

0 commit comments

Comments
 (0)