admin 管理员组

文章数量: 1087649

Here are the settings I am using:

External Tool Properties
    Title: Python 2
    Command: C:\Windows\System32\cmd.exe
    Arguments: /k python $(Path)    
    Initial Directory: $(Dir)    
    Icon Path: C:\Users\xxxxx\AppData\Local\Programs\Python\Python313\python.exe
    Save File = Y
    Use Current Environment Variables = No
    Use Output Bar = No
    Set Focus in Output Bar = No
    Close on Exit =  No
    Input  = None
    Add EOF (Ctrl-Z, U-001A or 1AH) = No
    Output = Discard  
    Encoding = UTF-8
    Standard Error: = Discard

This configuration lets me run python code in an interactive mode, but only if there are no spaces in the complete filename. I am new to this editor and assume there is some option I missed.

Suggestions?

Here are the settings I am using:

External Tool Properties
    Title: Python 2
    Command: C:\Windows\System32\cmd.exe
    Arguments: /k python $(Path)    
    Initial Directory: $(Dir)    
    Icon Path: C:\Users\xxxxx\AppData\Local\Programs\Python\Python313\python.exe
    Save File = Y
    Use Current Environment Variables = No
    Use Output Bar = No
    Set Focus in Output Bar = No
    Close on Exit =  No
    Input  = None
    Add EOF (Ctrl-Z, U-001A or 1AH) = No
    Output = Discard  
    Encoding = UTF-8
    Standard Error: = Discard

This configuration lets me run python code in an interactive mode, but only if there are no spaces in the complete filename. I am new to this editor and assume there is some option I missed.

Suggestions?

Share Improve this question asked 2 days ago Tamitik_TechTamitik_Tech 1615 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can add double quotes in your arguments so that it is:

/k python "$(Path)"

This will properly include any spaces in the path.

本文标签: Emeditor python tool only works if there are no spaces in the filenameStack Overflow