mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2025-01-26 09:48:55 +00:00
13 lines
362 B
Python
Executable file
13 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))
|