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

Problem with path manager when using path containing the path list separator #4093

Open
AlexisMignon opened this issue Feb 2, 2017 · 3 comments

Comments

@AlexisMignon
Copy link

Description of your problem

Adding a path continaining the ':' character in the path manager, does not work as excpected. This type of path appear for instance when nautilus mounts (using fuse) a remote directory through sftp.

What steps will reproduce the problem?

  1. mkdir ~/foo:bar
  2. add this directory with the path manager
  3. open a new (i)python console
  4. In the console run: import sys; print(sys.path)

What is the expected output? What do you see instead?
I would expect to have:

[
...
/home/<user>/foo:bar,
...
]

I get:

...
/home/<user>/foo,
/home/<user>/bar,
...

This is due to the fact that paths in the path manager are synchorinzed through the PYTHONPATH environment variable which does not support (at least in an obvious way) the use of ":" in the paths. There should be a way to do it though since using the working directory input , correcly adds it to sys.path

Versions and main components

  • Spyder Version: 3.1.2
  • Python Version: 3.5
  • Operating system: Linux Ubuntu 16.10
@ccordoba12 ccordoba12 added this to the wishlist milestone Feb 2, 2017
@ccordoba12
Copy link
Member

If you want to send us a pull request to fix this, that'd be great.

Else we don't have time to work on this, sorry.

@AlexisMignon
Copy link
Author

I'm not sure how to do it, the only thing I can propose is at least to warn (through a dialogue ?) users that such paths won't be handled correctly.

@ccordoba12
Copy link
Member

That's fine too ;-)

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

No branches or pull requests

3 participants