Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 9d0d8d5

Browse files
author
Hörmet Yiltiz
committed
add easter egg
1 parent 6ffc7a4 commit 9d0d8d5

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

lisp_eval/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ def lang(self, value):
9696
print('Setting _lang to', self._lang)
9797
self.writeConfig('lang', value)
9898
self.call_external = self.lang_opts[self._lang]
99-
self.iconUrls = [f"file:{Path(__file__).parent}/{self.call_external['url']}"]
99+
icon_fname = Path(__file__).parent / self.call_external['url']
100+
if icon_fname.exists():
101+
self.iconUrls = [f"file:{icon_fname}"]
102+
else:
103+
self.iconUrls = [f"file:{Path(__file__).parent}" + "/lambda.svg"]
100104

101105
def configWidget(self):
102106
return [

lisp_eval/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
],
3333
"url": "cuddles.png"
3434
},
35+
"R": {
36+
"prog": "R",
37+
"args": ["--no-restore",
38+
"--no-save",
39+
"--no-readline",
40+
"--quiet",
41+
"--no-echo",
42+
"-e",
43+
"'{}'"],
44+
"url": "r-is-also-a-lisp-shrug.png"
45+
},
3546
"racket": {
3647
"prog": "racket",
3748
"args": [

lisp_eval/lambda.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)