Fix error in processing python files given as program arguments
This commit is contained in:
parent
8698f255a0
commit
10b0601c54
|
@ -1191,7 +1191,10 @@ void Application::processCmdLineFiles(void)
|
||||||
Base::Interpreter().runFile(File.filePath().c_str(), false);
|
Base::Interpreter().runFile(File.filePath().c_str(), false);
|
||||||
}
|
}
|
||||||
else if (File.hasExtension("py")) {
|
else if (File.hasExtension("py")) {
|
||||||
Base::Interpreter().loadModule(File.fileNamePure().c_str());
|
//FIXME: Does this make any sense? I think we should do the ame as for
|
||||||
|
// fcmacro or fcscript.
|
||||||
|
//Base::Interpreter().loadModule(File.fileNamePure().c_str());
|
||||||
|
Base::Interpreter().runFile(File.filePath().c_str(), false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::vector<std::string> mods = App::GetApplication().getImportModules(Ext.c_str());
|
std::vector<std::string> mods = App::GetApplication().getImportModules(Ext.c_str());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user