Skip to content

Commit 5f84c40

Browse files
author
y-p
committed
Merge pull request #5486 from y-p/PR_pr_ver_fixes
Pr pr ver fixes
2 parents 1804bc3 + 3dff453 commit 5f84c40

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ci/print_versions.py

+6-6
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)
9-
pandas_dir = os.path.dirname(this_dir)
10-
sv_path = os.path.join(pandas_dir, 'pandas', 'util',
11-
'print_versions.py')
12-
return subprocess.check_call(['python', sv_path])
9+
pandas_dir = os.path.abspath(os.path.join(this_dir,".."))
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)