Permalink
Browse files

Verify that project-venv-name is set before trying to activate it

  • Loading branch information...
1 parent c0b1825 commit d9468be4e57e9acbb11bd958918b203c534e8fc4 @bartvandendriessche committed Jan 28, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 settings/settings-python.el
@@ -24,8 +24,9 @@
;; (add-hook 'pony-mode-hook 'settings-pony-ac-setup)
(add-hook 'python-mode-hook (lambda ()
- (hack-local-variables)
- (venv-workon project-venv-name)))
+ (if project-venv-name
+ (hack-local-variables)
+ (venv-workon project-venv-name))))
(setq gud-pdb-command-name "python -m pdb"))

0 comments on commit d9468be

Please sign in to comment.