parameters: ()
return_statement: return os.path.dirname(sys.argv[0])
docstring: Get the directory that the script or executable is located in.
docstring_summary: Get the directory that the script or executable is located in.
docstring_tokens: Get the directory that the script or executable is located in .
function: def get_main_dir():
      """Get the directory that the script or executable is located in."""
      if main_is_frozen():
          return os.path.dirname(sys.executable)
      return os.path.dirname(sys.argv[0])
function_tokens: def get_main_dir ( ) : if main_is_frozen ( ) : return os . path . dirname ( sys . executable ) return os . path . dirname ( sys . argv [ 0 ] )