Skip to content

print_versions.py fixes #5486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 commits merged into from Nov 10, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ci/print_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@


def show_versions():
import subprocess
import imp
import os
fn = __file__
this_dir = os.path.dirname(fn)
pandas_dir = os.path.dirname(this_dir)
sv_path = os.path.join(pandas_dir, 'pandas', 'util',
'print_versions.py')
return subprocess.check_call(['python', sv_path])
pandas_dir = os.path.abspath(os.path.join(this_dir,".."))
sv_path = os.path.join(pandas_dir, 'pandas','util')
mod = imp.load_module('pvmod', *imp.find_module('print_versions', [sv_path]))
return mod.show_versions()


if __name__ == '__main__':
show_versions()
return show_versions()