summaryrefslogtreecommitdiffstats
path: root/share/extensions/funcplot.py
diff options
context:
space:
mode:
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