NetEaseMusicApi
NetEaseMusicApi copied to clipboard
mac or linux bug
http://stackoverflow.com/questions/29823028/attributeerror-module-object-has-no-attribute-startfile
os' has no attribute 'startfile'
import os, sys, subprocess
def open_file(filename): if sys.platform == "win32": os.startfile(filename) else: opener ="open" if sys.platform == "darwin" else "xdg-open" subprocess.call([opener, filename])
http://stackoverflow.com/questions/17317219/is-there-an-platform-independent-equivalent-of-os-startfile/17317468#17317468