parameters: (framework_directory, game_directory, root_directory)
docstring: Determines the CloudGemFramework directory to use based on select command line arguments and the game project's gems.json file.
docstring_summary: Determines the CloudGemFramework directory to use based on select command line arguments and the game project's gems.json file.
docstring_tokens: Determines the CloudGemFramework directory to use based on select command line arguments and the game project s gems . json file .
function: def get_framework_directory_path(framework_directory, game_directory, root_directory):
      """Determines the CloudGemFramework directory to use based on select command line arguments and the game project's gems.json file."""
      if framework_directory:
  
          i = sys.argv.index('--framework-directory')
          sys.argv[i:i+2] = []  # remove arg because cli in resource manager doesn't know about it.
  
          return framework_directory
      
      else:
      
          if game_directory:
      
              game_directory_path = os.path.abspath(game_directory)
              if not os.path.isdir(game_directory_path):
                  raise RuntimeError('The specified game directory does not exist: {}.'.format(game_directory_path))
              
          else:
      
              game_directory_path = bootstrap.get_game_directory_path(root_directory)
  
          framework_directory_path = bootstrap.get_framework_directory_path(root_directory, game_directory_path)
          if framework_directory_path is None:
              raise RuntimeError('The gems.json file at {} does not contain an entry for the CloudGemFramework gem. You must enable this gem for your project.'.format(game_directory_path))
          return framework_directory_path
function_tokens: def get_framework_directory_path ( framework_directory , game_directory , root_directory ) : if framework_directory : i = sys . argv . index ( '--framework-directory' ) sys . argv [ i : i + 2 ] = [ ] # remove arg because cli in resource manager doesn't know about it. return framework_directory else : if game_directory : game_directory_path = os . path . abspath ( game_directory ) if not os . path . isdir ( game_directory_path ) : raise RuntimeError ( 'The specified game directory does not exist: {}.' . format ( game_directory_path ) ) else : game_directory_path = bootstrap . get_game_directory_path ( root_directory ) framework_directory_path = bootstrap . get_framework_directory_path ( root_directory , game_directory_path ) if framework_directory_path is None : raise RuntimeError ( 'The gems.json file at {} does not contain an entry for the CloudGemFramework gem. You must enable this gem for your project.' . format ( game_directory_path ) ) return framework_directory_path