add pikaObj.py to core

This commit is contained in:
graduateDesign 2021-10-02 09:59:53 +08:00
parent 90a4e32d5b
commit e5264721fb
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,14 @@
class TinyObj:
pass
class BaseObj(TinyObj):
pass
def print(val: any):
pass
def set(argPath: str, val: any):
pass

View File

@ -73,6 +73,7 @@ func main() {
func checkOutRequsetments(path string, repo *git.Repository, requerments []Requerment_t) {
exec.Command("cmd", "/C", "mkdir", "pikascript-lib").Run()
exec.Command("cmd", "/C", "mkdir", "pikascript-core").Run()
exec.Command("cmd", "/C", "mkdir", "pikascript-api").Run()
for _, requerment := range requerments {
/* checkout commit */
workTree, _ := repo.Worktree()
@ -96,6 +97,8 @@ func checkOutRequsetments(path string, repo *git.Repository, requerments []Reque
fmt.Printf("cmd: %s", "copy"+" "+packagePath+" "+dirPath+"\n")
err = exec.Command("cmd", "/C", "copy", packagePath, dirPath).Run()
CheckIfError(err)
err = exec.Command("cmd", "/C", "copy", dirPath+"\\*.py").Run()
CheckIfError(err)
}
}
func CheckIfError(err error) {