Skip to content

Commit 3fd6158

Browse files
committed
Kotlin: Call the right kotlinc
1 parent 44efb34 commit 3fd6158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/kotlin-extractor/kotlin_plugin_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_single_version(fakeVersionOutput = None):
3131
kotlinc = shutil.which('kotlinc')
3232
if kotlinc is None:
3333
raise KotlincNotFoundException()
34-
versionOutput = subprocess.run(['kotlinc', '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stderr if fakeVersionOutput is None else fakeVersionOutput
34+
versionOutput = subprocess.run([kotlinc, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stderr if fakeVersionOutput is None else fakeVersionOutput
3535
m = re.match(r'.* kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+) .*', versionOutput)
3636
if m is None:
3737
raise Exception('Cannot detect version of kotlinc (got ' + str(versionOutput) + ')')

0 commit comments

Comments
 (0)