summaryrefslogtreecommitdiffstats
path: root/share/extensions/pathalongpath.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/pathalongpath.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/pathalongpath.py')
-rw-r--r--share/extensions/pathalongpath.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/extensions/pathalongpath.py b/share/extensions/pathalongpath.py
index f02a69d50..917bc665b 100644
--- a/share/extensions/pathalongpath.py
+++ b/share/extensions/pathalongpath.py
@@ -272,8 +272,9 @@ class PathAlongPath(pathmodifier.Diffeo):
node.set('d', cubicsuperpath.formatPath(newp))
-e = PathAlongPath()
-e.affect()
+if __name__ == '__main__':
+ e = PathAlongPath()
+ e.affect()
# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99