Skip to content

Instantly share code, notes, and snippets.

@KaushikShresth07
Created June 12, 2021 13:24
Show Gist options
  • Save KaushikShresth07/ce692c920aab1aee3ae278383aa60567 to your computer and use it in GitHub Desktop.
Save KaushikShresth07/ce692c920aab1aee3ae278383aa60567 to your computer and use it in GitHub Desktop.
import os
import pywhatkit
def Music(Name,Path):
if 'file' in Name:
os.startfile(str(Path))
else:
pywhatkit.playonyt(Name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment