read resources from share

This commit is contained in:
Yonas Kolb committed 2017-08-24 01:23:07 +02:00
1 parent fffb530f5c
commit 5730417b61
1 file changed
+5 -2
+5 -2
View File
@@ -64,8 +64,11 @@ extension SettingsPresetFile {
return group
}
let relativePath = "SettingPresets/\(path).yml"
let settingsPath = Path(#file).parent().parent().parent() + relativePath
var settingsPath = Path("../share/xcodegen/\(relativePath)")
if !settingsPath.exists {
// maybe running locally
settingsPath = Path(#file).parent().parent().parent() + relativePath
}
guard settingsPath.exists else {
switch self {
case .base, .config, .platform: