aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexyapps/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/exyapps/main.py b/exyapps/main.py
index 881c3cc..322a3eb 100755
--- a/exyapps/main.py
+++ b/exyapps/main.py
@@ -27,7 +27,7 @@ def generate(inputfilename, outputfilename=None, dump=0, **flags):
# recognize *.exy for the new grammar
elif inputfilename.endswith('.exy'):
- outputfilename = inputfilename[:-3] + '.py'
+ outputfilename = inputfilename[:-4] + '.py'
# cannot automatically generate the output file name if we don't recognize extension
else: