Skip to content

Commit 4c3efd9

Browse files
authored
bpo-36649: Remove trailing spaces for registry keys when installed via the Store (GH-12865)
1 parent 5c75f37 commit 4c3efd9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove trailing spaces for registry keys when installed via the Store.

PC/layout/support/appxmanifest.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,29 +159,28 @@ def public(f):
159159
"SysVersion": VER_DOT,
160160
"Version": "{}.{}.{}".format(VER_MAJOR, VER_MINOR, VER_MICRO),
161161
"InstallPath": {
162-
# I have no idea why the trailing spaces are needed, but they seem to be needed.
163-
"": "[{AppVPackageRoot}][ ]",
164-
"ExecutablePath": "[{AppVPackageRoot}]python.exe[ ]",
165-
"WindowedExecutablePath": "[{AppVPackageRoot}]pythonw.exe[ ]",
162+
"": "[{AppVPackageRoot}]",
163+
"ExecutablePath": "[{AppVPackageRoot}]\\python.exe",
164+
"WindowedExecutablePath": "[{AppVPackageRoot}]\\pythonw.exe",
166165
},
167166
"Help": {
168167
"Main Python Documentation": {
169168
"_condition": lambda ns: ns.include_chm,
170-
"": "[{{AppVPackageRoot}}]Doc\\{}[ ]".format(
169+
"": "[{{AppVPackageRoot}}]\\Doc\\{}".format(
171170
PYTHON_CHM_NAME
172171
),
173172
},
174173
"Local Python Documentation": {
175174
"_condition": lambda ns: ns.include_html_doc,
176-
"": "[{AppVPackageRoot}]Doc\\html\\index.html[ ]",
175+
"": "[{AppVPackageRoot}]\\Doc\\html\\index.html",
177176
},
178177
"Online Python Documentation": {
179178
"": "https://docs.python.org/{}".format(VER_DOT)
180179
},
181180
},
182181
"Idle": {
183182
"_condition": lambda ns: ns.include_idle,
184-
"": "[{AppVPackageRoot}]Lib\\idlelib\\idle.pyw[ ]",
183+
"": "[{AppVPackageRoot}]\\Lib\\idlelib\\idle.pyw",
185184
},
186185
}
187186
}

0 commit comments

Comments
 (0)