Commit 13a62de5 authored by Romain Casati's avatar Romain Casati
Browse files

Get supported languages list from basthon-kernel module once installed.

parent 3583bb3d
......@@ -5,6 +5,7 @@ current directory.
from pathlib import Path
import shutil
import argparse
import sys
from . import implementation
......@@ -16,8 +17,19 @@ def main():
help='Install Basthon kernel in current directory',
help='Get the list of kanguages supported in Basthon',
args = parser.parse_args()
if args.languages:
languages = [[len('basthon-'):-len('.min.js')]
for f in (Path(__file__).parent / 'data').glob(
print('\n'.join(languages), end='')
if args.install:
print(f'Installing Basthon kernel {implementation} in current directory')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment