将原子与氢一起使用。 Atom 的工作目录是当前文件位置的上一级文件夹。我如何将其更改为当前文件夹?

Using Atom with Hydrogen. The working directory for Atom is one folder up from the current file's location. How do i change it to the current folder?

在 Hydrogen 和使用插件终端平台时,默认目录是我的代码文件所在文件夹的上一级。

例如,我将处理一个路径为 parent/code/file.py 的文件。当我在插件的终端中 运行 pwd 或在 python 脚本中通过 Hydrogen 进行等效时,我得到 parent/,但我需要它是 parent/code/导入文件等

也许 Atom 的默认目录是打开的项目文件夹的项目?

知道如何将 Atom 的默认当前目录(或者它是特定于包的)更改为我在 Hydrogen 中工作的文件 on/executing 吗?

在 hydrogen 设置中,您可以选择内核的启动位置。

默认为“首次启动项目的目录”。你可以在那里选择'Current directory of the file',这应该会给你你想要的。