Permalink
Browse files

Included changes by @takuan-osho. Small stylistic change in the Pytho…

…n code and default the settings to null - then check for truthyness in the code so we don't add "" to the path.
  • Loading branch information...
1 parent 2fe69f4 commit db036f145fa8a2ebea8e80836ebc033092783269 @d0ugal d0ugal committed Jan 2, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 RstPreview.py
  2. +1 −1 RstPreview.sublime-settings
View
@@ -66,7 +66,7 @@ def run(self, edit):
settings = sublime.load_settings(SETTINGS_FILE)
site_packages_path = settings.get('site_packages_path')
- if not site_packages_path in sys.path:
+ if site_packages_path and site_packages_path not in sys.path:
sys.path.append(site_packages_path)
# Select all the text in the current document
@@ -2,5 +2,5 @@
// Where to look for python site-packages directory.
// Use absolute path, not relative path.
// For example, "/Users/foo/.virtualenvs/env/lib/python2.x/site-packages".
- "site_packages_path": ""
+ "site_packages_path": null
}

0 comments on commit db036f1

Please sign in to comment.