Add 'source' to RuntimeException

This commit is contained in:
Bartłomiej Pluta
2019-07-13 15:06:53 +02:00
parent 86cf5d01f3
commit b6983df2d3
6 changed files with 39 additions and 18 deletions

View File

@@ -5,5 +5,5 @@ from smnp.program.interpreter import Interpreter
def loadStandardLibrary():
mainSource = resource_string('smnp.library.code', 'main.mus').decode("utf-8")
env = Interpreter.interpretString(mainSource)
env = Interpreter.interpretString(mainSource, "<stdlib>")
return env