code: def open_in_browser(file_location):
      
  
      # If just the name of the file was given, check if it's in the Current
      # Working Directory.
      if not os.path.isfile(file_location):
          file_location = os.path.join(os.getcwd(), file_location)
      if not os.path.isfile(file_location):
          raise IOError("\n\nFile not found.")
  
      #  For some reason OSX requires this adjustment (tested on 10.10.4)
      if sys.platform == "darwin":
          file_location = "file:///"+file_location
  
      new = 2  # open in a new tab, if possible
      webbrowser.get().open(file_location, new=new)
docs: Attempt to open file located at file_location in the default web
      browser.