Skip to content

Commit 097e737

Browse files
author
Joachim Marder
committed
* Added absolute path to powershell script
* Added quotes to command line parameters
1 parent 67cc259 commit 097e737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Designer/Classes/RibbonCompiler.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function TRibbonCompiler.Compile(const Document: TRibbonDocument): TRibbonCompil
8383

8484
DocDir := ExtractFilePath(Document.Filename);
8585

86-
if (not Execute('powershell -f Generate.Ribbon.Markup.pas.ps1', DocDir, [Document.Filename, 'APPLICATION', TSettings.Instance.RibbonCompilerPath]))
86+
if (not Execute('powershell -f "' + IncludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))) + 'Generate.Ribbon.Markup.pas.ps1"', DocDir, [QuotedStr(Document.Filename), 'APPLICATION', QuotedStr(TSettings.Instance.RibbonCompilerPath)]))
8787
then
8888
Exit(crRibbonCompilerError);
8989

0 commit comments

Comments
 (0)