Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created March 29, 2012 20:32
Show Gist options
  • Select an option

  • Save AeroNotix/2243477 to your computer and use it in GitHub Desktop.

Select an option

Save AeroNotix/2243477 to your computer and use it in GitHub Desktop.
def help(q):
import webbrowser
import os
from subprocess import call
if webbrowser.open('www.qtile.org'):
return
elif os.environ.get('EDITOR', None):
call([os.environ['EDITOR'], 'path/to/help'])
return
else:
# lolwat?
pass
if __name__ == '__main__':
help('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment