Skip to content

Commit

Permalink
GH-226: fix error in version_file path
Browse files Browse the repository at this point in the history
  • Loading branch information
rain1024 committed Mar 13, 2019
1 parent 367aba3 commit 8dc8711
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions underthesea/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
import os

import click
import platform
from underthesea.util import download_component
Expand All @@ -24,10 +26,10 @@ def data():

@main.command()
def info():
underthesea_version = open("VERSION").read().strip()
version_file = os.path.join(os.path.dirname(__file__), 'VERSION')
underthesea_version = open(version_file).read().strip()
python_version = platform.python_version()
# system_info = f"{platform.system()}{platform.release()}"
system_info = ""
system_info = f"{platform.system()}{platform.release()}"
print("")
print("ENVIRONMENT")
print(f" underthesea version : {underthesea_version}")
Expand Down

0 comments on commit 8dc8711

Please sign in to comment.