mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix 'from PikaObj import *' error info
This commit is contained in:
parent
971c7ffc48
commit
aaffdbaee1
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
|
from PikaObj import *
|
||||||
import PikaStdLib
|
import PikaStdLib
|
||||||
import PikaStdData
|
import PikaStdData
|
||||||
import ctypes
|
import ctypes
|
||||||
@ -5,4 +6,6 @@ import GTestTask
|
|||||||
import PikaMath
|
import PikaMath
|
||||||
import PikaStdDevice
|
import PikaStdDevice
|
||||||
import test_module1
|
import test_module1
|
||||||
import test_cmodule
|
import test_cmodule
|
||||||
|
|
||||||
|
print('hello pikascript!')
|
@ -1437,6 +1437,12 @@ static char* Parser_PreProcess_from(Args* buffs_p, char* line) {
|
|||||||
alias = class;
|
alias = class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* skip PikaObj */
|
||||||
|
if (strEqu(module, "PikaObj")){
|
||||||
|
line_out = strsCopy(buffs_p, "");
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
line_out = strsFormat(&buffs, PIKA_LINE_BUFF_SIZE, "import %s\n%s = %s.%s",
|
line_out = strsFormat(&buffs, PIKA_LINE_BUFF_SIZE, "import %s\n%s = %s.%s",
|
||||||
module, alias, module, class);
|
module, alias, module, class);
|
||||||
line_out = strsCopy(buffs_p, line_out);
|
line_out = strsCopy(buffs_p, line_out);
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user