[python-package] modify __init__.py (#1587)
* Update Makefile * Update Makefile * modify __init__.py
This commit is contained in:
parent
d3c4d19c91
commit
d8876b0b73
@ -18,7 +18,8 @@ except ImportError:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')
|
VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')
|
||||||
__version__ = open(VERSION_FILE).read().strip()
|
with open(VERSION_FILE) as f:
|
||||||
|
__version__ = f.read().strip()
|
||||||
|
|
||||||
__all__ = ['DMatrix', 'Booster',
|
__all__ = ['DMatrix', 'Booster',
|
||||||
'train', 'cv',
|
'train', 'cv',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user