summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-26 16:47:22 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-27 19:29:54 +0100
commit3b0a4d7346cef0091b00ad0cc6610476fdea61d1 (patch)
tree3b3dc459959c8201bb96f9b0377512e0017157df /morph
parent8720a665cb2203ff512f992a72a2d92678a9c613 (diff)
downloadmorph-3b0a4d7346cef0091b00ad0cc6610476fdea61d1.tar.gz
Save __file__ so we can recursively run morph later on
Diffstat (limited to 'morph')
-rwxr-xr-xmorph5
1 files changed, 4 insertions, 1 deletions
diff --git a/morph b/morph
index 0c0789d5..f55bce96 100755
--- a/morph
+++ b/morph
@@ -17,5 +17,8 @@
import morphlib
+import os.path
-morphlib.app.Morph(version=morphlib.__version__).run()
+app = morphlib.app.Morph(version=morphlib.__version__)
+app.__file__ = os.path.realpath(__file__)
+app.run()