1
This commit is contained in:
parent
cdff94027d
commit
db3c2529f6
@ -192,8 +192,10 @@ __builtins__.export_global = export_global
|
||||
|
||||
bool PyEngine::LoadModule(const char* module_name)
|
||||
{
|
||||
std::string real_filename = work_path + module_name;
|
||||
a8::ReplaceString(real_filename, ".", "/");
|
||||
std::string module_name_str = module_name;
|
||||
a8::ReplaceString(module_name_str, ".", "/");
|
||||
|
||||
std::string real_filename = work_path + module_name_str;
|
||||
real_filename = real_filename + ".py";
|
||||
|
||||
FILE* fp = fopen(real_filename.c_str(), "r");
|
||||
|
Loading…
x
Reference in New Issue
Block a user