diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2018-05-04 14:26:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 14:26:51 -0400 |
commit | aad73bb6d561713c1855e9b3731e2e8f39cfd1f5 (patch) | |
tree | 6f94b762b2b0c52cd348595cbbfca69ef7d6ac17 /rambo/__main__.py | |
parent | c996e55d4023cf5ece8a56b1a7de0dd1a690a5f6 (diff) | |
parent | 28ee4047521676586b0ba9dedd8fe65180aa0a2d (diff) | |
download | rambo-aad73bb6d561713c1855e9b3731e2e8f39cfd1f5.tar.gz |
Merge pull request #11 from rendinam/todo_1
Explicitly use a default python version; other minor changes.
Diffstat (limited to 'rambo/__main__.py')
-rwxr-xr-x | rambo/__main__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rambo/__main__.py b/rambo/__main__.py index d23c6e8..b1a3402 100755 --- a/rambo/__main__.py +++ b/rambo/__main__.py @@ -103,7 +103,12 @@ def main(argv=None): recipes_dir = os.path.normpath(args.recipes_dir) - versions = {'python': '', 'numpy': ''} + # If --python not specified, use version of current interpreter. + vinfo = sys.version_info + default_pyver = '{}.{}'.format( + vinfo.major, + vinfo.minor) + versions = {'python': default_pyver, 'numpy': ''} if args.python: versions['python'] = args.python |