Skip to content

Commit ce30879

Browse files
committed
Fix bug in setting full_form
1 parent 20962a4 commit ce30879

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mathicsscript/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from mathics.core.parser import FileLineFeeder
2121
from mathics.core.definitions import Definitions
22-
from mathics.core.expression import Symbol
22+
from mathics.core.expression import Symbol, SymbolTrue, SymbolFalse
2323
from mathics.core.evaluation import Evaluation, Output
2424
from mathics.core.expression import from_python
2525
from mathics import version_string, license_string
@@ -299,8 +299,7 @@ def main(
299299
print(f"Quit by pressing {quit_command}\n")
300300

301301
# If defined, full_form and style overwrite the predefined values.
302-
if full_form:
303-
definitions.set_ownvalue("Settings`$ShowFullFormInput", from_python(full_form))
302+
definitions.set_ownvalue("Settings`$ShowFullFormInput", SymbolTrue if full_form else SymbolFalse)
304303

305304
definitions.set_ownvalue(
306305
"Settings`$PygmentsStyle", from_python(shell.pygments_style)

0 commit comments

Comments
 (0)