gintonic.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:gintonic 作者: redahe 项目源码 文件源码
def launch_game(game_tuple):
    close_curses()
    print('RUNNING: ' + str(game_tuple))
    system = game_tuple[0]
    game = game_tuple[1]
    full_path = os.path.join(path_to_games, system, game)
    args = config.get(SECTION, 'run_'+system).format(full_path)
    origWD = os.getcwd()
    os.chdir(os.path.dirname(CONFIG_FILE))
    try:
        subprocess.call(args, shell=True)
    except KeyboardInterrupt:
        pass
    os.chdir(origWD)
    init_curses()
    curses.flushinp()
    search_window.draw()
    game_menu.draw()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号