Ver Fonte

* Fix for path of executable

pierre há 26 anos atrás
pai
commit
c68c0562c2
1 ficheiros alterados com 8 adições e 2 exclusões
  1. 8 2
      ide/text/fpcompil.pas

+ 8 - 2
ide/text/fpcompil.pas

@@ -205,7 +205,10 @@ begin
     end;
   WriteSwitches(SwitchesPath);
   MainFile:=FixFileName(FExpand(FileName));
-  EXEFile:=FixFileName(GetEXEPath+NameOf(MainFile)+ExeExt);
+  If GetEXEPath<>'' then
+    EXEFile:=FixFileName(GetEXEPath+NameOf(MainFile)+ExeExt)
+  else
+    EXEFile:=DirOf(MainFile)+NameOf(MainFile)+ExeExt;
 { Reset }
   CtrlBreakHit:=false;
 { Show Program Info }
@@ -276,7 +279,10 @@ end;
 end.
 {
   $Log$
-  Revision 1.15  1999-03-01 15:41:50  peter
+  Revision 1.16  1999-03-07 23:00:47  pierre
+   * Fix for path of executable
+
+  Revision 1.15  1999/03/01 15:41:50  peter
     + Added dummy entries for functions not yet implemented
     * MenuBar didn't update itself automatically on command-set changes
     * Fixed Debugging/Profiling options dialog