summaryrefslogtreecommitdiff
path: root/lib/license/management
diff options
context:
space:
mode:
Diffstat (limited to 'lib/license/management')
-rw-r--r--lib/license/management/python.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/license/management/python.rb b/lib/license/management/python.rb
index 37771ba..8a1a81a 100644
--- a/lib/license/management/python.rb
+++ b/lib/license/management/python.rb
@@ -14,7 +14,10 @@ module License
end
def version
- ENV.fetch('LM_PYTHON_VERSION', '3')
+ ENV.fetch('ASDF_PYTHON_VERSION') do
+ _stdout, stderr, status = shell.execute([:python, '--version'])
+ status.success? ? stderr.split(' ')[-1] : 3
+ end
end
def pip_index_url