Skip to content

Instantly share code, notes, and snippets.

@thomasnield
Created June 2, 2018 23:09
Show Gist options
  • Save thomasnield/ceed8c3453b2bd22d352d9ba6397c8e7 to your computer and use it in GitHub Desktop.
Save thomasnield/ceed8c3453b2bd22d352d9ba6397c8e7 to your computer and use it in GitHub Desktop.
Calling Kotlin from Python
os.system("kotlinc src/main/kotlin/Launcher.kt -include-runtime -d launcher.jar")
process = Popen(['java', '-jar', 'launcher.jar', tmp_file_name], stdout=PIPE)
(stdout, stderr) = process.communicate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment