def get_box_folder_location():
 box_prefs_path = 'Library/Application Support/Box/Box Sync/sync_root_folder.txt'
 box_home = None
 box_prefs = os.path.join(os.environ['HOME'], box_prefs_path)
 try:
  with open(box_prefs, 'r') as sync_path:
   data = sync_path.read()
   box_home = data
 except IOError:
  error('Unable to find your Box prefs =(')
 return box_home

def get_box_folder_location ( ) : box_prefs_path = 'Library/Application Support/Box/Box Sync/sync_root_folder.txt' box_home = None box_prefs = os . path . join ( os . environ [ 'HOME' ] , box_prefs_path ) try : with open ( box_prefs , 'r' ) as sync_path : data = sync_path . read ( ) box_home = data except IOError : error ( 'Unable to find your Box prefs =(' ) return box_home
try to locate the box folder .