diff options
author | GermainZ <germanosz@gmail.com> | 2014-03-09 12:46:36 +0200 |
---|---|---|
committer | GermainZ <germanosz@gmail.com> | 2014-03-09 12:46:36 +0200 |
commit | 085ea1e99122a032424133104fca2e76610d8b1d (patch) | |
tree | 29176b2ca3fdd7a02d7653ed155a399714831121 /ranger/core/main.py | |
parent | f61fbfae9257363979ded4688240f6a83c3f3233 (diff) | |
download | ranger-085ea1e99122a032424133104fca2e76610d8b1d.tar.gz |
Allow scope.sh to be used for image previews
Diffstat (limited to 'ranger/core/main.py')
-rw-r--r-- | ranger/core/main.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index ff4e02d6..631209cd 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -110,6 +110,12 @@ def main(): from ranger.ext import curses_interrupt_handler curses_interrupt_handler.install_interrupt_handler() + # Create cache directory + if fm.settings.preview_images and fm.settings.use_preview_script: + from ranger import CACHEDIR + if not os.path.exists(CACHEDIR): + os.makedirs(CACHEDIR) + # Run the file manager fm.initialize() ranger.api.hook_init(fm) |