fix SettingPreset path

This commit is contained in:
Yonas Kolb
2017-08-24 11:23:26 +02:00
parent 0618a49dfe
commit 6bc2ebef8e
+2 -1
View File
@@ -64,7 +64,8 @@ extension SettingsPresetFile {
return group
}
let relativePath = "SettingPresets/\(path).yml"
var settingsPath = Path("../share/xcodegen/\(relativePath)")
var settingsPath = Path(Bundle.main.bundlePath) + "../share/xcodegen/\(relativePath)"
if !settingsPath.exists {
// maybe running locally
settingsPath = Path(#file).parent().parent().parent() + relativePath