File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 55python - m nuitka -- standalone -- include- data- file = icon.png= ./ icon.png -- include- data- file = pdf.png= ./ pdf.png -- include- data- file = Doc2X_zh.qm= ./ Doc2X_zh.qm -- plugin- enable= pyqt6 Doc2X.py
66```
77``` python
8- python - m nuitka -- standalone -- include- data- file = icon.png= ./ icon.png -- include- data- file = pdf.png= ./ pdf.png -- plugin- enable= pyqt6 -- include- data- file = Doc2X_zh.qm= ./ Doc2X_zh.qm -- onefile -- mingw64 Doc2X.py
8+ python - m nuitka -- standalone -- include- data- file = icon.png= ./ icon.png -- include- data- file = pdf.png= ./ pdf.png -- plugin- enable= pyqt6 -- include- data- file = Doc2X_zh.qm= ./ Doc2X_zh.qm -- onefile -- mingw64 -- windows - console - mode = disable -- windows - icon - from - ico = . / icon.png Doc2X.py
99```
Original file line number Diff line number Diff line change 22import logging
33import locale
44
5- from Tools .DEFAULT import DEFAULT_General_Congig
5+ from Tools .DEFAULT import DEFAULT_General_Congig , DEFAULT_General_Congig_win
66
77
88def get_default_config (filename ):
99 """
1010 Get the default config
1111 """
1212 if "General" in filename :
13- return DEFAULT_General_Congig
13+ if os .name == "nt" :
14+ return DEFAULT_General_Congig_win
15+ else :
16+ return DEFAULT_General_Congig
1417 return ""
1518
1619
Original file line number Diff line number Diff line change 11DEFAULT_General_Congig = """
22font = "DejaVu Sans"
33font_size = 14
4- lang=en_US
4+ lang=zh_CN
55Listen=False
66"""
7+ DEFAULT_General_Congig_win = """
8+ font = "Arial"
9+ font_size = 14
10+ lang=zh_CN
11+ Listen=False
12+ """
You can’t perform that action at this time.
0 commit comments