Loading rxq/util.xqm +2 −0 Original line number Diff line number Diff line Loading @@ -195,7 +195,9 @@ declare function max.util:maxHome(){ Returns resource file path from the edition folder if exists, from the max default one if not. :) declare function max.util:getResourceFilePath($projectId, $path){ let $xmlFormat := max.config:getXMLFormat($projectId) let $overPath := if(contains($path,'core/')) then replace($path,'core/','') else $path let $overPath := if(contains($path,$xmlFormat||'/')) then replace($path,$xmlFormat||'/','') else $path let $editionFilePath := max.util:maxHome() || "editions/" || $projectId || "/" || $overPath return if(file:exists($editionFilePath)) Loading Loading
rxq/util.xqm +2 −0 Original line number Diff line number Diff line Loading @@ -195,7 +195,9 @@ declare function max.util:maxHome(){ Returns resource file path from the edition folder if exists, from the max default one if not. :) declare function max.util:getResourceFilePath($projectId, $path){ let $xmlFormat := max.config:getXMLFormat($projectId) let $overPath := if(contains($path,'core/')) then replace($path,'core/','') else $path let $overPath := if(contains($path,$xmlFormat||'/')) then replace($path,$xmlFormat||'/','') else $path let $editionFilePath := max.util:maxHome() || "editions/" || $projectId || "/" || $overPath return if(file:exists($editionFilePath)) Loading