mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +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 PikaStdData
|
||||
import ctypes
|
||||
@ -6,3 +7,5 @@ import PikaMath
|
||||
import PikaStdDevice
|
||||
import test_module1
|
||||
import test_cmodule
|
||||
|
||||
print('hello pikascript!')
|
@ -1437,6 +1437,12 @@ static char* Parser_PreProcess_from(Args* buffs_p, char* line) {
|
||||
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",
|
||||
module, alias, module, class);
|
||||
line_out = strsCopy(buffs_p, line_out);
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user