Skip to content
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

Find Python 2 dynamically #13

Merged
merged 1 commit into from Feb 22, 2018
Merged

Conversation

JustAnotherArchivist
Copy link
Contributor

Modern and up-to-date systems (e.g. Gentoo, Arch) have Python 3 as the default version, i.e. calling python executes Python 3. On these systems, we need to call python2.
Some very old systems (e.g. warrior 2) have no /usr/bin/python2 symlink. On these systems, we need to call python.

The output of python -V has been like Python 5.6.7 since at least Python 2.3.0 (I haven't checked earlier versions), so it should be safe to rely on it.

Modern and up-to-date systems (e.g. Gentoo, Arch) have Python 3 as the default version, i.e. calling 'python' executes Python 3. On these systems, we need to call 'python2'.
Some very old systems (e.g. warrior 2) have no /usr/bin/python2 symlink. On these systems, we need to call 'python'.
@km09 km09 merged commit 0c2d93f into ArchiveTeam:master Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants