mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add pikaObj.py to core
This commit is contained in:
parent
90a4e32d5b
commit
e5264721fb
@ -0,0 +1,14 @@
|
||||
class TinyObj:
|
||||
pass
|
||||
|
||||
|
||||
class BaseObj(TinyObj):
|
||||
pass
|
||||
|
||||
|
||||
def print(val: any):
|
||||
pass
|
||||
|
||||
|
||||
def set(argPath: str, val: any):
|
||||
pass
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user