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

Utilopen #239

Merged
merged 2 commits into from
Nov 18, 2015
Merged

Utilopen #239

merged 2 commits into from
Nov 18, 2015

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Nov 3, 2015

This is a minor utility to allow opening files in the native viewer. This is similar to webbroswer.open, but according to the official docs:

Note that on some platforms, trying to open a filename using this function, may work and start the operating system’s associated program. However, this is neither supported nor portable

This is a portable way to do it without abusing that module. It is in plumbum.path.utils and is called gui_open.

Works on Mac, Linux, Windows.

@henryiii henryiii added this to the v1.6.1 milestone Nov 3, 2015
@AndydeCleyre
Copy link
Contributor

Oh, I like this.

henryiii added a commit that referenced this pull request Nov 18, 2015
@henryiii henryiii merged commit 5644c93 into master Nov 18, 2015
@henryiii henryiii deleted the utilopen branch November 18, 2015 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants