parameters: ()
return_statement: return os.path.abspath(script_dir)
docstring: Returns the path to the CryVersionSelector script folder, based on the location of this file.
docstring_summary: Returns the path to the CryVersionSelector script folder, based on the location of this file.
docstring_tokens: Returns the path to the CryVersionSelector script folder based on the location of this file .
function: def get_script_dir():
      """
      Returns the path to the CryVersionSelector script folder, based on the location of this file.
      """
      if getattr(sys, 'frozen', False):
          # Note the scripts are in CryVersionSelector root while the frozen binaries are deployed
          script_dir = os.path.join(os.path.dirname(sys.executable), '../..')
      else:
          script_dir = os.path.dirname(__file__)
      return os.path.abspath(script_dir)
function_tokens: def get_script_dir ( ) : if getattr ( sys , 'frozen' , False ) : # Note the scripts are in CryVersionSelector root while the frozen binaries are deployed script_dir = os . path . join ( os . path . dirname ( sys . executable ) , '../..' ) else : script_dir = os . path . dirname ( __file__ ) return os . path . abspath ( script_dir )