From 10b0601c54ab3d70c11503a0a0ba909ecda99d3b Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 29 Feb 2012 20:42:45 +0100 Subject: [PATCH] Fix error in processing python files given as program arguments --- src/App/Application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 2afdac40f..7f9eeea17 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -1191,7 +1191,10 @@ void Application::processCmdLineFiles(void) Base::Interpreter().runFile(File.filePath().c_str(), false); } 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 { std::vector mods = App::GetApplication().getImportModules(Ext.c_str());