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

PR: Put user provided paths at the front of sys.path #17077

Closed
wants to merge 3 commits into from

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Dec 22, 2021

Description of Changes

Put user provided paths at the front of sys.path for both command completions in the Editor (language server) and the IPython console.

Requires:
python-lsp/python-lsp-server#139
spyder-ide/spyder-kernels#352

Issue(s) Resolved

Fixes #17066

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @mrclary

@pep8speaks
Copy link

pep8speaks commented Dec 22, 2021

Hello @mrclary! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 84:80: E501 line too long (99 > 79 characters)

Line 249:80: E501 line too long (99 > 79 characters)

Line 269:80: E501 line too long (83 > 79 characters)

Line 11:80: E501 line too long (128 > 79 characters)

Line 87:80: E501 line too long (100 > 79 characters)

Comment last updated at 2022-01-21 20:15:29 UTC

…erting at position 1.

Was the intention to always have the current working directory ('') at position 0? Because it was not at position 0.
…ments/Python/python-lsp-server external-deps/python-lsp-server/

subrepo:
  subdir:   "external-deps/python-lsp-server"
  merged:   "34ccad2f0"
upstream:
  origin:   "/Users/rclary/Documents/Python/python-lsp-server"
  branch:   "pypath-priority"
  commit:   "34ccad2f0"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
…ments/Python/spyder-kernels external-deps/spyder-kernels/

subrepo:
  subdir:   "external-deps/spyder-kernels"
  merged:   "9042046e8"
upstream:
  origin:   "/Users/rclary/Documents/Python/spyder-kernels"
  branch:   "pypath-priority"
  commit:   "9042046e8"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
@mrclary mrclary marked this pull request as draft March 18, 2022 20:36
@mrclary
Copy link
Contributor Author

mrclary commented Jun 22, 2022

Closing in favor of #18308

@mrclary mrclary closed this Jun 22, 2022
@mrclary mrclary deleted the pypath-priority branch June 22, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants