Skip to content

Commit

Permalink
Windows exe ext.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Apr 15, 2020
1 parent 9ed73f2 commit 04f8d56
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/python/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import tempfile
import unittest
import platform
import xgboost
import subprocess
import numpy
Expand Down Expand Up @@ -32,7 +33,12 @@ def test_cli_model(self):
os.path.join(curdir, os.path.pardir, os.path.pardir))
data_path = "{root}/demo/data/agaricus.txt.train?format=libsvm".format(
root=project_root)
exe = os.path.join(project_root, 'xgboost')

if platform.system() == 'Windows':
exe = 'xgboost.exe'
else:
exe = 'xgboost'
exe = os.path.join(project_root, exe)
assert os.path.exists(exe)

with tempfile.TemporaryDirectory() as tmpdir:
Expand Down

0 comments on commit 04f8d56

Please sign in to comment.