fix mv *.py and *.pyi not succece

This commit is contained in:
lyon 2022-05-15 13:40:48 +08:00
parent bb454948c1
commit 62011526ed
3 changed files with 8 additions and 52 deletions

View File

@ -1,44 +0,0 @@
import STM32G0
import PikaPiZero
class GPIO(STM32G0.GPIO):
pass
class Time(STM32G0.Time):
pass
class ADC(STM32G0.ADC):
pass
class UART(STM32G0.UART):
pass
class PWM(STM32G0.PWM):
pass
class Task(STM32G0.Task):
pass
class IIC(STM32G0.IIC):
pass
class RGB(PikaPiZero.RGB):
pass
class KEY(PikaPiZero.KEY):
pass
class LCD(PikaPiZero.LCD):
pass
class Point(PikaPiZero.Point):
pass

View File

@ -1,6 +1,6 @@
pikascript-core==v1.7.1
PikaStdLib==v1.7.1
PikaStdDevice==v1.6.0
STM32G0==v1.2.0
PikaPiZero==v1.1.3
Arm2D==v0.3.4
pikascript-core==latest
PikaStdLib==latest
PikaStdDevice==latest
STM32G0==latest
PikaPiZero==latest
Arm2D==latest

View File

@ -123,7 +123,7 @@ func checkOutRequsetments(path string, repo *git.Repository, requerments []Reque
}
// fmt.Printf(" copy" + " " + packagePath + " " + dirPath + "\n")
CheckIfError(cp.Copy(packagePath, dirPath))
pyFileList, _ := FilterDirsGlob(packagePath, "*.py")
pyFileList, _ := FilterDirsGlob(dirPath, "*.py")
for i := range pyFileList {
pyFileSource := strings.ReplaceAll(pyFileList[i], "\\", "/")
pyFilePath := strings.Split(pyFileSource, "/")
@ -133,7 +133,7 @@ func checkOutRequsetments(path string, repo *git.Repository, requerments []Reque
}
pyiFileList, _ := FilterDirsGlob(packagePath, "*.pyi")
pyiFileList, _ := FilterDirsGlob(dirPath, "*.pyi")
for i := range pyiFileList {
pyFileSource := strings.ReplaceAll(pyiFileList[i], "\\", "/")
pyFilePath := strings.Split(pyFileSource, "/")