Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Windows 7 Error: Can't open file py-src\ltmain.py#16

@tpgit

Description

@tpgit

My user name on Windows 7 has a space char in it. When I attempt to evaluate a python statement I get the following error:

 python: can't open file '"C:\Users\<user name>\AppData\Local\LightTable\plugins\Python\py-src\ltmain.py"': [Errno 22] Invalid argument 

On Windows 7, calls to proc/exec should not wrap the args in quotes. In this case remove call to escape-spaces from https://github.com/LightTable/Python/blob/master/src/lt/plugins/python.cljs#L89

See Windows 7 "can't open file py-src\ltmain.py" error for details on why wrapping args in proc/exec calls is a bad idea even on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions