tweak(xod-client-electron): use getLocalPath instead of hardcoding ‘@/patch-name’

This commit is contained in:
Evgeny Kochetkov
2017-05-18 11:57:58 +03:00
parent 5a872b0789
commit cdfd2175dd

View File

@@ -160,7 +160,7 @@ const catchInvalidWorkspace = R.curry(
// :: String -> Project
const createEmptyProject = projectName => R.compose(
XP.assocPatch('@/main', XP.createPatch()), // TODO: Get rid of "@" after fix xod-project/setPatchPath
XP.assocPatch(XP.getLocalPath('main'), XP.createPatch()),
XP.setProjectName(projectName),
XP.createProject
)();