Esempio n. 1
0
 def print_steam_list(self, command_line):
     steamapps_paths = get_steamapps_paths()
     for platform in ('linux', 'windows'):
         for path in steamapps_paths[platform]:
             appmanifest_files = get_appmanifests(path)
             for appmanifest_file in appmanifest_files:
                 appmanifest = AppManifest(
                     os.path.join(path, appmanifest_file))
                 self._print(
                     command_line, "  {:8} | {:<60} | {:10} | {}".format(
                         appmanifest.steamid, appmanifest.name or '-',
                         platform, ", ".join(appmanifest.states)))
Esempio n. 2
0
 def print_steam_list(self, command_line):
     steamapps_paths = get_steamapps_paths()
     for platform in ('linux', 'windows'):
         for path in steamapps_paths[platform]:
             appmanifest_files = get_appmanifests(path)
             for appmanifest_file in appmanifest_files:
                 appmanifest = AppManifest(os.path.join(path, appmanifest_file))
                 self._print(
                     command_line,
                     "  {:8} | {:<60} | {:10} | {}".format(
                         appmanifest.steamid,
                         appmanifest.name or '-',
                         platform,
                         ", ".join(appmanifest.states)
                     )
                 )