From 49333e50d7f410326575f2d68d3109f9e7a60ae2 Mon Sep 17 00:00:00 2001 From: Alex Zai Date: Wed, 25 Nov 2015 16:17:36 -0800 Subject: [PATCH] (fix) open page without method --- src/drive_launcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drive_launcher.py b/src/drive_launcher.py index 32f9849..e67cf7a 100644 --- a/src/drive_launcher.py +++ b/src/drive_launcher.py @@ -1,6 +1,7 @@ import sys from drive_api import Drive from workflow import Workflow +import subprocess UPDATE_SETTINGS = {'github_slug' : 'azai91/alfred-drive-workflow'} HELP_URL = 'https://github.com/azai91/alfred-drive-workflow/issues' @@ -22,7 +23,7 @@ def main(wf): Drive.set_cache_length(length) return sys.stdout.write('cache set to %s seconds' % str(length)) - Drive.open_page(url) + subprocess.call(['open', url]) if __name__ == '__main__': sys.exit(wf.run(main))