Skip to content
Snippets Groups Projects
Commit 747ff726 authored by Marco Biasini's avatar Marco Biasini
Browse files

use absolute path

parent 98a62cc6
Branches
Tags
No related merge requests found
......@@ -371,7 +371,7 @@ void FileLoader::RunScript(const QString& filename)
pi.RunCommand("sys.argv.append('"+QFileInfo(filename).fileName()+"')");
pi.RunCommand("_dir=os.getcwd()");
pi.RunCommand("os.chdir('"+QFileInfo(filename).absolutePath()+"')");
pi.RunScript(QFileInfo(filename).fileName());
pi.RunScript(QFileInfo(filename).absoluteFilePath());
//pi.RunCommand("execfile('"+QFileInfo(filename).fileName()+"')");
pi.RunCommand("os.chdir(_dir)");
pi.RunCommand("del(_dir)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment