Visual Studio Python-重置python交互式shell时如何运行启动脚本

时间:2019-03-03 09:04:16

标签: python visual-studio-2017

我正在使用Visual Studio 17进行Python开发。 我想在每次启动/重置Python Interactive shell来设置环境/导入一些常用模块等时运行一些安装脚本,以便我可以快速尝试一下。

Microsoft document site描述了我们可以在C:\ Users [用户名] \ OneDrive \ Documents \ Visual Studio 2017 \ Python Scripts \ Python 3.6(64位)中添加脚本,并将其运行。

但是,使用文件夹中的启动脚本,每当我重置shell时,我都会运行类似print(1)的操作,以便随后执行启动脚本。

我的问题很简单:当我重新启动python交互式shell时,有没有一种方法可以自动运行启动脚本。

0 个答案:

没有答案