code: def getScriptLocation():
  	
  	location = os.path.abspath("./")
  	if __file__.rfind("/") != -1:
  		location = __file__[:__file__.rfind("/")]
  	return location
docs: Helper function to get the location of a Python file.