Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why convert new_prefix to lowercase in conda-unpack-script.py? #372

Open
makejiang opened this issue Oct 18, 2024 · 0 comments
Open

Why convert new_prefix to lowercase in conda-unpack-script.py? #372

makejiang opened this issue Oct 18, 2024 · 0 comments

Comments

@makejiang
Copy link

makejiang commented Oct 18, 2024

Hi,
I saw following codes in conda-unpack-scripts.py:

if on_win:
    def binary_replace(data, placeholder, new_prefix):
        new_prefix = new_prefix.lower()
        if placeholder in data:
            return replace_pyzzer_entry_point_shebang(data, placeholder, new_prefix)
        elif placeholder.lower() in data:
            return replace_pyzzer_entry_point_shebang(data, placeholder.lower(), new_prefix)
        return data

Curious why this new_prefix must be lowercase?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant