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

Add folders with subfolders with path manager #2024

Closed
spyder-bot opened this issue Feb 17, 2015 · 4 comments
Closed

Add folders with subfolders with path manager #2024

spyder-bot opened this issue Feb 17, 2015 · 4 comments

Comments

@spyder-bot
Copy link
Collaborator

From spacego...@gmail.com on 2014-10-26T06:02:34Z

Spyder Version: 2.3.0rc
Python Version: 2.7.7
Qt Version : 4.8.6, PyQt4 (API v2) 4.10.4 on Windows
pyflakes >=0.5.0: 0.8.1 (OK)
pep8 >=0.6 : 1.5.6 (OK)
IPython >=0.13 : 2.1.0 (OK)
pygments >=1.6 : 1.6 (OK)
sphinx >=0.6.6 : 1.2.2 (OK)
psutil >=0.3 : 2.1.1 (OK)
rope >=0.9.2 : 0.9.4 (OK)
matplotlib >=1.0: 1.3.1 (OK)
sympy >=0.7.0 : 0.7.5 (OK)
pylint >=0.25 : None (NOK)

What is the expected output? What do you see instead?

In Matlab, user has an option to add folders with subfolders to the search path. Does Spyder has the same functionality?

Thanks!

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2024

@spyder-bot spyder-bot added this to the v2.4 milestone Feb 17, 2015
@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-11-18T14:53:27Z

If you add a folder, you don't need to add subfolders to your path. The only thing you need to do is to add an empty init.py file to every subfolder. Then you can call modules in your subfolders just using import statements, like this

from folder.subfolder.subsubfolder import myfunction

I really don't know if it's a good for Spyder to add those files in behalf of the user.

Steven, what do you think?

Cc: steven.s...@gmail.com
Labels: MS-v2.4 Cat-SpyderGUI

@spyder-bot
Copy link
Collaborator Author

From steven.s...@gmail.com on 2014-11-19T04:04:20Z

I agree with your assessment Carlos. Adding nested folders to the Python path defeats the purpose of the Python package/subpackage system.

@goanpeca
Copy link
Member

@ccordoba12, closing?

@ccordoba12
Copy link
Member

Yep :-)

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