default to a common list of programs
(self)
| 84 | ).tag(config=True) |
| 85 | @default('script_magics') |
| 86 | def _script_magics_default(self): |
| 87 | """default to a common list of programs""" |
| 88 | |
| 89 | defaults = [ |
| 90 | 'sh', |
| 91 | 'bash', |
| 92 | 'perl', |
| 93 | 'ruby', |
| 94 | 'python', |
| 95 | 'python2', |
| 96 | 'python3', |
| 97 | 'pypy', |
| 98 | ] |
| 99 | if os.name == 'nt': |
| 100 | defaults.extend([ |
| 101 | 'cmd', |
| 102 | ]) |
| 103 | |
| 104 | return defaults |
| 105 | |
| 106 | script_paths = Dict( |
| 107 | help="""Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby' |
nothing calls this directly
no outgoing calls
no test coverage detected