runnable modules can always import from their parent folder

This commit is contained in:
Basile Burg 2015-03-18 21:52:27 +01:00
parent e83ddd6213
commit a85aeb8172
2 changed files with 2 additions and 1 deletions

View File

@ -1268,6 +1268,7 @@ begin
dmdproc.Options := [poStdErrToOutput, poUsePipes]; dmdproc.Options := [poStdErrToOutput, poUsePipes];
dmdproc.Executable := DCompiler; dmdproc.Executable := DCompiler;
dmdproc.Parameters.Add(fDoc.fileName); dmdproc.Parameters.Add(fDoc.fileName);
dmdproc.Parameters.Add('-J' + ExtractFilePath(fDoc.fileName));
dmdproc.Parameters.AddText(fRunnableSw); dmdproc.Parameters.AddText(fRunnableSw);
if unittest then if unittest then
begin begin

View File

@ -628,7 +628,7 @@ begin
if fMousePos.X > llen then exit; if fMousePos.X > llen then exit;
// //
// something note really clear: // something note really clear:
// TCEEditorWidget.getSymbolLoc works when using the line ending from the filename. // TCEEditorWidget.getSymbolLoc works when using the line ending of the file.
// TCESynMemo.getMouseFileBytePos works when using the line ending from the system. // TCESynMemo.getMouseFileBytePos works when using the line ending from the system.
len := getSysLineEndLen; len := getSysLineEndLen;
for i:= 0 to fMousePos.y-2 do for i:= 0 to fMousePos.y-2 do