{"action":"created","issue":{"url":"https://api.github.com/repos/proofit404/anaconda-mode/issues/338","repository_url":"https://api.github.com/repos/proofit404/anaconda-mode","labels_url":"https://api.github.com/repos/proofit404/anaconda-mode/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/proofit404/anaconda-mode/issues/338/comments","events_url":"https://api.github.com/repos/proofit404/anaconda-mode/issues/338/events","html_url":"https://github.com/proofit404/anaconda-mode/issues/338","id":376947767,"node_id":"MDU6SXNzdWUzNzY5NDc3Njc=","number":338,"title":"Add \"python-shell-extra-pythonpaths\" in spacemacs config file does not work","user":{"login":"zarzen","id":1150493,"node_id":"MDQ6VXNlcjExNTA0OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1150493?v=4","gravatar_id":"","url":"https://api.github.com/users/zarzen","html_url":"https://github.com/zarzen","followers_url":"https://api.github.com/users/zarzen/followers","following_url":"https://api.github.com/users/zarzen/following{/other_user}","gists_url":"https://api.github.com/users/zarzen/gists{/gist_id}","starred_url":"https://api.github.com/users/zarzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarzen/subscriptions","organizations_url":"https://api.github.com/users/zarzen/orgs","repos_url":"https://api.github.com/users/zarzen/repos","events_url":"https://api.github.com/users/zarzen/events{/privacy}","received_events_url":"https://api.github.com/users/zarzen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-02T19:56:24Z","updated_at":"2018-11-03T20:58:42Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI am using `sys.path.insert(...)` method to maintain python `import` from sibling folders. \r\n```\r\nimport sys\r\nsys.path.insert(0, os.path.abspath('../common'))\r\n\r\nfrom <a file at ../common dir> import xxx-function as yyy\r\n\r\nif __name__ == \"__main__\":\r\n    yyy()\r\n```\r\n\r\nThus `jump to definition` function of `anaconda-mode` seems broken. I cannot jump from yyy to it's origin file located at `../common` directory. I guess it is the problem of the `PYTHONPATH`. \r\nSo, I try to add following to `.spacemacs` config:\r\n``` lisp\r\n(defun dotspacemacs/user-config ()\r\n    (add-to-list 'python-shell-extra-pythonpaths \"/path/to/the/dir/contains/xxx-function\")\r\n)\r\n```\r\n\r\nAfter restart `emacs` got following error:\r\n```log\r\n(Spacemacs) Error in dotspacemacs/user-config: Symbol’s value as variable is void: python-shell-extra-pythonpaths\r\n```"},"comment":{"url":"https://api.github.com/repos/proofit404/anaconda-mode/issues/comments/435620414","html_url":"https://github.com/proofit404/anaconda-mode/issues/338#issuecomment-435620414","issue_url":"https://api.github.com/repos/proofit404/anaconda-mode/issues/338","id":435620414,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYyMDQxNA==","user":{"login":"zarzen","id":1150493,"node_id":"MDQ6VXNlcjExNTA0OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1150493?v=4","gravatar_id":"","url":"https://api.github.com/users/zarzen","html_url":"https://github.com/zarzen","followers_url":"https://api.github.com/users/zarzen/followers","following_url":"https://api.github.com/users/zarzen/following{/other_user}","gists_url":"https://api.github.com/users/zarzen/gists{/gist_id}","starred_url":"https://api.github.com/users/zarzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarzen/subscriptions","organizations_url":"https://api.github.com/users/zarzen/orgs","repos_url":"https://api.github.com/users/zarzen/repos","events_url":"https://api.github.com/users/zarzen/events{/privacy}","received_events_url":"https://api.github.com/users/zarzen/received_events","type":"User","site_admin":false},"created_at":"2018-11-03T20:58:42Z","updated_at":"2018-11-03T20:58:42Z","author_association":"NONE","body":"> Hi, try to `(require 'python)`.\r\nGreat! It works.\r\n\r\nIs there anyway to set this `python-shell-extra-pythonpaths` to be project specific? Write something into `.dir_locals.el`?\r\n"}}
{"actor":{"display_login":"zarzen"}}