aboutsummaryrefslogtreecommitdiff
path: root/syntax/def_NEWLINE.py
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/def_NEWLINE.py')
-rwxr-xr-xsyntax/def_NEWLINE.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/syntax/def_NEWLINE.py b/syntax/def_NEWLINE.py
index 2720bee..d995861 100755
--- a/syntax/def_NEWLINE.py
+++ b/syntax/def_NEWLINE.py
@@ -3,7 +3,6 @@
# Copyright 2025, Jonas Smedegaard <dr@jones.dk>
# SPDX-License-Identifier: GPL-3+
-from os.path import basename, splitext
from railroad import *
Diagram(
@@ -13,5 +12,4 @@ Diagram(
'\\r',
),
type="complex"
-).writeStandalone(
- open(splitext(basename(__file__))[0] + ".svg", "w").write)
+).writeStandalone(sys.stdout.write)