Skip to content

Commit

Permalink
fix clips path and check for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Oct 19, 2020
1 parent 4db285a commit dd86e4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions detect_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
CONFIG = json.load(f)

CACHE_DIR = CONFIG.get('save_clips', {}).get('cache_dir', '/cache')
CLIPS_DIR = CONFIG.get('save_clips', {}).get('clips_dir', '/cache')
CLIPS_DIR = CONFIG.get('save_clips', {}).get('clips_dir', '/clips')

if not os.path.exists(CACHE_DIR):
if not os.path.exists(CACHE_DIR) and not os.path.islink(CACHE_DIR):
os.makedirs(CACHE_DIR)
if not os.path.exists(CLIPS_DIR):
if not os.path.exists(CLIPS_DIR) and not os.path.islink(CLIPS_DIR):
os.makedirs(CLIPS_DIR)

MQTT_HOST = CONFIG['mqtt']['host']
Expand Down

0 comments on commit dd86e4f

Please sign in to comment.