Skip to content

Commit

Permalink
Fix executable not found when the current working directory (cwd) is …
Browse files Browse the repository at this point in the history
…set to config file path
  • Loading branch information
wu-vincent committed May 1, 2024
1 parent b891ee3 commit 95fa9a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions mkdoxy/doxyrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def __init__(
tempDoxyFolder: str,
doxyCfgNew,
doxyConfigFile: Optional[str] = None,
runPath: Optional[str] = None,
):
"""! Constructor.
Default Doxygen config options:
Expand Down Expand Up @@ -58,7 +57,6 @@ def __init__(
self.doxyConfigFile: Optional[str] = doxyConfigFile
self.hashFileName: str = "hashChanges.yaml"
self.hashFilePath: PurePath = PurePath.joinpath(Path(self.tempDoxyFolder), Path(self.hashFileName))
self.runPath: Optional[str] = runPath
self.doxyCfg: dict = self.setDoxyCfg(doxyCfgNew)

def setDoxyCfg(self, doxyCfgNew: dict) -> dict:
Expand Down Expand Up @@ -224,7 +222,6 @@ def run(self):
stdout=PIPE,
stdin=PIPE,
stderr=PIPE,
cwd=self.runPath,
)
(doxyBuilder.communicate(self.dox_dict2str(self.doxyCfg).encode("utf-8"))[0].decode().strip())
# log.info(self.destinationDir)
Expand Down
2 changes: 0 additions & 2 deletions mkdoxy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,12 @@ def tempDir(siteDir: str, tempDir: str, projectName: str) -> str:
tempDirApi = tempDir(config["site_dir"], "assets/.doxy/", project_name)

# Check src changes -> run Doxygen
runPath = os.path.dirname(config.config_file_path) if config.config_file_path else None
doxygenRun = DoxygenRun(
self.config["doxygen-bin-path"],
project_data.get("src-dirs"),
tempDirApi,
project_data.get("doxy-cfg", {}),
project_data.get("doxy-cfg-file", ""),
runPath,
)
if doxygenRun.checkAndRun():
log.info(" -> generating Doxygen files")
Expand Down

0 comments on commit 95fa9a3

Please sign in to comment.