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

"开启资料夹"功能的跨平台实现 #16

Closed
petronny opened this issue Jun 30, 2016 · 2 comments
Closed

"开启资料夹"功能的跨平台实现 #16

petronny opened this issue Jun 30, 2016 · 2 comments

Comments

@petronny
Copy link

gui.py中564行

os.startfile(folder)

在OSX下可以使用

os.system('open "%s"' % folder)

Linux下可以使用

os.system('xdg-open "%s"' % folder)
@eight04
Copy link
Owner

eight04 commented Jun 30, 2016

👍

這篇 有人提到可以用 webbrowser.open,不過也有人說在 mac 底下沒有用。

pypi 上有個 desktop package,但我在 python3 + windows 7 會 import error。

@eight04
Copy link
Owner

eight04 commented Jul 1, 2016

在 2016.7.1 做了暫時的修正。

我寄了一封信給 desktop 的作者,如果有後續的話可能就改成用 desktop

@eight04 eight04 closed this as completed in 94897d1 Nov 2, 2016
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

No branches or pull requests

2 participants