calculator: set binpath so we can at least import 'math'

This commit is contained in:
K. Lange 2021-10-31 18:55:43 +09:00
parent 71cfa5786d
commit 5635b9d577
1 changed files with 1 additions and 0 deletions

View File

@ -320,6 +320,7 @@ int main(int argc, char * argv[]) {
struct TTKButton * _down_button = NULL;
vm.binpath = strdup("/bin/calculator"); /* Just assume this so we can get module imports */
krk_initVM(KRK_GLOBAL_CLEAN_OUTPUT);
krk_startModule("__main__");