fix qtmoc on windows

This commit is contained in:
therecipe 2016-12-06 00:44:42 +01:00
parent bc0d27a76d
commit a398716973

View file

@ -246,12 +246,14 @@ func (m *appMoc) runQtMoc() (err error) {
}
}
if info, err = os.Stat(mocPath); err != nil {
return
}
if info.IsDir() {
err = fmt.Errorf("%s is a directory", mocPath)
return
if runtime.GOOS != "windows" { //TODO: os.Stat fails on windows
if info, err = os.Stat(mocPath); err != nil {
return
}
if info.IsDir() {
err = fmt.Errorf("%s is a directory", mocPath)
return
}
}
if err = os.Chdir(m.appPath); err != nil {