mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-29 05:35:16 +03:00
fix qtmoc on windows
This commit is contained in:
parent
bc0d27a76d
commit
a398716973
1 changed files with 8 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue