diff --git a/building_manager.py b/building_manager.py index ee57f3c02b96798e9274ef377326da6c69f21b37..6c1b0a1d89693b0f57a8b8515a556add52858b99 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')