mirror of https://gitlab.com/basile.b/dexed.git
fix, maybe an issue with CWD after running a proj
This commit is contained in:
parent
097875dd59
commit
fad3396ff3
|
@ -814,11 +814,11 @@ begin
|
|||
end;
|
||||
//
|
||||
fRunner.Executable := outputFilename;
|
||||
fRunnerOldCwd := GetCurrentDirUTF8;
|
||||
if fRunner.CurrentDirectory.isEmpty then
|
||||
begin
|
||||
fRunnerOldCwd := GetCurrentDirUTF8;
|
||||
cwd := fRunner.Executable.extractFilePath;
|
||||
chDir(cwd);
|
||||
SetCurrentDirUTF8(cwd);
|
||||
fRunner.CurrentDirectory := cwd;
|
||||
end;
|
||||
if poUsePipes in fRunner.Options then begin
|
||||
|
@ -855,7 +855,7 @@ begin
|
|||
if not proc.Running then
|
||||
begin
|
||||
getprocInputHandler.removeProcess(TProcess(sender));
|
||||
ChDir(fRunnerOldCwd);
|
||||
SetCurrentDirUTF8(fRunnerOldCwd);
|
||||
//
|
||||
if (proc.ExitStatus <> 0) then
|
||||
msgs.message(format('error: the process (%s) has returned the signal %d',
|
||||
|
|
Loading…
Reference in New Issue