Skip to content

Commit 294f163

Browse files
Resolve @exefolder@ alias in settings registry watch paths (o3de#17511)
Signed-off-by: Markus Prettner <[email protected]>
1 parent 724286d commit 294f163

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Code/Tools/AssetProcessor/native/utilities/PlatformConfiguration.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ namespace AssetProcessor
11271127

11281128
AZ::IO::FixedMaxPath projectPath = AZ::Utils::GetProjectPath();
11291129
AZ::IO::FixedMaxPathString projectName = AZ::Utils::GetProjectName();
1130+
AZ::IO::FixedMaxPathString executableDirectory = AZ::Utils::GetExecutableDirectory();
11301131

11311132
AZ::IO::FixedMaxPath engineRoot(AZ::IO::PosixPathSeparator);
11321133
settingsRegistry->Get(engineRoot.Native(), AZ::SettingsRegistryMergeUtils::FilePathKey_EngineRootFolder);
@@ -1202,6 +1203,7 @@ namespace AssetProcessor
12021203
AZ::StringFunc::Replace(scanFolderEntry.m_watchPath.Native(), "@ROOT@", assetRootPath.c_str());
12031204
AZ::StringFunc::Replace(scanFolderEntry.m_watchPath.Native(), "@PROJECTROOT@", projectPath.c_str());
12041205
AZ::StringFunc::Replace(scanFolderEntry.m_watchPath.Native(), "@ENGINEROOT@", engineRoot.c_str());
1206+
AZ::StringFunc::Replace(scanFolderEntry.m_watchPath.Native(), "@EXEFOLDER@", executableDirectory.c_str());
12051207
// Normalize path make sure it is using posix slashes
12061208
scanFolderEntry.m_watchPath = scanFolderEntry.m_watchPath.LexicallyNormal();
12071209

0 commit comments

Comments
 (0)