From e31730b9b6d1178b4a640aaac3d0567546940e96 Mon Sep 17 00:00:00 2001
From: dobli <dobler.alex@gmail.com>
Date: Tue, 5 Mar 2019 12:01:15 +0100
Subject: [PATCH] fixed path of device script

---
 building_manager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/building_manager.py b/building_manager.py
index ee57f3c..6c1b0a1 100755
--- a/building_manager.py
+++ b/building_manager.py
@@ -1418,10 +1418,10 @@ def device_menu(args):
         base_dir = os.getcwd()
 
     # Check if device scripts are installed
-    bin_path = 'usr/bin/enable-swarm-device'
+    bin_path = '/usr/bin/enable-swarm-device'
 
     choices = ['Install device scripts']
-    if not os.path.exists(bin_path):
+    if os.path.exists(bin_path):
         choices.append('Link device to service')
 
     choices.append('Exit')
-- 
GitLab