Skip to content

Commit 3dff453

Browse files
author
y-p
committed
BUG: print_versions uses path python rather then the invoking python
1 parent 5b38f39 commit 3dff453

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/print_versions.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33

44
def show_versions():
5-
import subprocess
5+
import imp
66
import os
77
fn = __file__
88
this_dir = os.path.dirname(fn)
99
pandas_dir = os.path.abspath(os.path.join(this_dir,".."))
10-
sv_path = os.path.join(pandas_dir, 'pandas', 'util',
11-
'print_versions.py')
12-
return subprocess.check_call(['python', sv_path])
10+
sv_path = os.path.join(pandas_dir, 'pandas','util')
11+
mod = imp.load_module('pvmod', *imp.find_module('print_versions', [sv_path]))
12+
return mod.show_versions()
1313

1414

1515
if __name__ == '__main__':
16-
show_versions()
16+
return show_versions()

0 commit comments

Comments
 (0)