Skip to content

Commit

Permalink
Do not capitalize $DISTRIBUTION_NAME in v1-style menuinst (#153)
Browse files Browse the repository at this point in the history
* Do not capitalize $DISTRIBUTION_NAME in legacy menuinst

* add news
  • Loading branch information
jaimergp authored Aug 31, 2023
1 parent 8b6adb3 commit d393aed
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion menuinst/_legacy/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def substitute_env_variables(text, dir):
for a, b in (
(u'${PREFIX}', env_prefix),
(u'${ROOT_PREFIX}', root_prefix),
(u'${DISTRIBUTION_NAME}', os.path.split(root_prefix)[-1].capitalize()),
(u'${DISTRIBUTION_NAME}', os.path.split(root_prefix)[-1]),
(
u'${PYTHON_SCRIPTS}',
os.path.normpath(join(env_prefix, u'Scripts')).replace(u"\\", u"/"),
Expand Down
19 changes: 19 additions & 0 deletions news/153-capitalization
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Do not capitalize `${DISTRIBUTION_NAME}` in v1-style `menuinst` JSON documents. (#153)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>

0 comments on commit d393aed

Please sign in to comment.