Run arbitrary scripts from Cmd command line

This commit is contained in:
jriegel
2012-01-02 15:56:17 +01:00
committed by Stefan Tröger
parent 33318314d8
commit 95c9259765
6 changed files with 2227 additions and 1 deletions

View File

@@ -1334,7 +1334,7 @@ void Application::processFiles(const std::list<std::string>& files)
Base::Interpreter().runFile(file.filePath().c_str(), true);
}
else if (file.hasExtension("py")) {
try {
try{
Base::Interpreter().loadModule(file.fileNamePure().c_str());
}
catch(const PyException&) {