mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
14 lines
362 B
Python
Executable File
14 lines
362 B
Python
Executable File
#!/usr/bin/env python
|
|
import os
|
|
import webbrowser
|
|
import argparse
|
|
|
|
parser = argparse.ArgumentParser(description='Butterfly tab opener.')
|
|
parser.add_argument(
|
|
'location',
|
|
default=os.getcwd(),
|
|
help='Directory to open the new tab in. (Defaults to current)')
|
|
args = parser.parse_args()
|
|
|
|
webbrowser.open('%swd%s' % (os.getenv('LOCATION'), args.location))
|