summaryrefslogtreecommitdiffstats
path: root/share/extensions/funcplot.py
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2008-05-23 07:05:15 +0000
committerpjrm <pjrm@users.sourceforge.net>2008-05-23 07:05:15 +0000
commit90551840d5920fb3695b155b5da54c5ee8977efd (patch)
treed6476a34e2a9ec86ec94b0f5e9b453e36e4f8dff /share/extensions/funcplot.py
parentoops, back out unintended change committed in r18709. (diff)
downloadinkscape-90551840d5920fb3695b155b5da54c5ee8977efd.tar.gz
inkscape-90551840d5920fb3695b155b5da54c5ee8977efd.zip
share/extensions/*.py: Wrap ‘e = MyEffect(); e.affect()’ in ‘if __name__ == '__main__':’, to allow use of pychecker.
(bzr r5742)
Diffstat (limited to 'share/extensions/funcplot.py')
-rw-r--r--share/extensions/funcplot.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/extensions/funcplot.py b/share/extensions/funcplot.py
index 08631a0be..e5f93d430 100644
--- a/share/extensions/funcplot.py
+++ b/share/extensions/funcplot.py
@@ -269,8 +269,9 @@ class FuncPlot(inkex.Effect):
if self.options.remove:
node.getparent().remove(node)
-e = FuncPlot()
-e.affect()
+if __name__ == '__main__':
+ e = FuncPlot()
+ e.affect()
# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99