Made posts into a module and use it for import.
This commit is contained in:
@@ -114,7 +114,7 @@ private:
|
||||
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;
|
||||
}
|
||||
@@ -190,7 +190,7 @@ private:
|
||||
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;
|
||||
}
|
||||
@@ -266,7 +266,7 @@ private:
|
||||
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;
|
||||
}
|
||||
|
||||
0
src/Mod/Path/PathScripts/post/__init__.py
Normal file
0
src/Mod/Path/PathScripts/post/__init__.py
Normal file
Reference in New Issue
Block a user