parameters: (temp_name: str)
return_statement: return home_path, temp_path
docstring: Get path where trader is running in.
docstring_summary: Get path where trader is running in.
docstring_tokens: Get path where trader is running in .
function: def _get_trader_dir(temp_name: str):
      """
      Get path where trader is running in.
      """
      cwd = Path.cwd()
      temp_path = cwd.joinpath(temp_name)
  
      # If .StarQuant folder exists in current working directory,
      # then use it as trader running path.
      if temp_path.exists():
          return cwd, temp_path
  
      # Otherwise use home path of system.
      home_path = Path.home()
      temp_path = home_path.joinpath(temp_name)
  
      # Create .StarQuant folder under home path if not exist.
      if not temp_path.exists():
          temp_path.mkdir()
  
      return home_path, temp_path
function_tokens: def _get_trader_dir ( temp_name : str ) : cwd = Path . cwd ( ) temp_path = cwd . joinpath ( temp_name ) # If .StarQuant folder exists in current working directory, # then use it as trader running path. if temp_path . exists ( ) : return cwd , temp_path # Otherwise use home path of system. home_path = Path . home ( ) temp_path = home_path . joinpath ( temp_name ) # Create .StarQuant folder under home path if not exist. if not temp_path . exists ( ) : temp_path . mkdir ( ) return home_path , temp_path