Skip to content

Commit

Permalink
Made posts into a module and use it for import.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert authored and wwmayer committed Jul 1, 2017
1 parent c806e45 commit fbb2b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Path/Gui/AppPathGuiPy.cpp
Expand Up @@ -114,7 +114,7 @@ class Module : public Py::ExtensionModule<Module>
QFileInfo fileInfo = list.at(i);
if (fileInfo.baseName().toStdString() == processor) {
if (fileInfo.absoluteFilePath().contains(QString::fromLatin1("PathScripts"))) {
pre << "from PathScripts import " << processor;
pre << "from PathScripts.post import " << processor;
} else {
pre << "import " << processor;
}
Expand Down Expand Up @@ -190,7 +190,7 @@ class Module : public Py::ExtensionModule<Module>
QFileInfo fileInfo = list.at(i);
if (fileInfo.baseName().toStdString() == processor) {
if (fileInfo.absoluteFilePath().contains(QString::fromLatin1("PathScripts"))) {
pre << "from PathScripts import " << processor;
pre << "from PathScripts.post import " << processor;
} else {
pre << "import " << processor;
}
Expand Down Expand Up @@ -266,7 +266,7 @@ class Module : public Py::ExtensionModule<Module>
QFileInfo fileInfo = list.at(i);
if (fileInfo.baseName().toStdString() == processor) {
if (fileInfo.absoluteFilePath().contains(QString::fromLatin1("PathScripts"))) {
pre << "from PathScripts import " << processor;
pre << "from PathScripts.post import " << processor;
} else {
pre << "import " << processor;
}
Expand Down
Empty file.

0 comments on commit fbb2b44

Please sign in to comment.