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

Folders that start with a '$' #23135

Closed
jimclay75051 opened this issue Mar 26, 2024 · 2 comments
Closed

Folders that start with a '$' #23135

jimclay75051 opened this issue Mar 26, 2024 · 2 comments
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@jimclay75051
Copy link

jimclay75051 commented Mar 26, 2024

I will often give a working directory a name that starts with '$'. Such as '$Python-Programming'. This it to make the folder appear at the top of file explorer where it is easily found.

I've discovered that Python in Visual Studio Code does not like that. I'm assuming this is bug. Spyder has no problem running files in such a folder. But VSC gives me a '[Errno 2] No such file or directory'.

Just for clarity, when I remove the '$' from the folder name, the python files will run as expected

Here's the whole thing:
2024-03-26_14-17-42
2024-03-26_14-18-20

`PS C:$Python-Programming> cd c:/$Python-Programming
cd : Cannot find path 'C:-Programming' because it does not exist.
At line:1 char:1

  • cd c:/$Python-Programming
  •   + CategoryInfo          : ObjectNotFound: (C:\-Programming:String) [Set-Location], ItemNotFoundException
      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
    
    

PS C:$Python-Programming> & c:/Users/jimcl/anaconda3/python.exe c:/$Python-Programming/Untitled-1.py
C:\Users\jimcl\anaconda3\python.exe: can't open file 'c:\-Programming\Untitled-1.py': [Errno 2] No such file or directory
PS C:$Python-Programming>

  • History restored

PS C:$Python-Programming> `

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 26, 2024
@karthiknadig
Copy link
Member

@jimclay75051 What do you use as the terminal shell in Spyder? You can change your default terminal to be cmd. When you use powershell the $ are variables for that shell. You can do this from the terminal tab:
image

Select Command Prompt:
image

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Mar 27, 2024
@jimclay75051
Copy link
Author

jimclay75051 commented Mar 27, 2024 via email

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Mar 27, 2024
@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants