diff options
| author | 2014-10-21 10:33:15 -0300 | |
|---|---|---|
| committer | 2014-10-21 10:33:15 -0300 | |
| commit | 5ec02211214350ee558fd9f6bb052264fd24f75e (patch) | |
| tree | b61e8c61a95d18a91d053e71dcbd7b30e47552a1 /nikola/plugins/command/auto.py | |
| parent | 58c4878526dec5510f23c812274686787d8724ba (diff) | |
Imported Upstream version 7.1.0upstream/7.1.0
Diffstat (limited to 'nikola/plugins/command/auto.py')
| -rw-r--r-- | nikola/plugins/command/auto.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nikola/plugins/command/auto.py b/nikola/plugins/command/auto.py index c46e0a3..7f3f66f 100644 --- a/nikola/plugins/command/auto.py +++ b/nikola/plugins/command/auto.py @@ -28,7 +28,6 @@ from __future__ import print_function, unicode_literals import os import subprocess -import webbrowser from nikola.plugin_categories import Command from nikola.utils import req_missing @@ -61,7 +60,7 @@ class CommandAuto(Command): try: from livereload import Server except ImportError: - req_missing(['livereload==2.1.0'], 'use the "auto" command') + req_missing(['livereload'], 'use the "auto" command') return # Run an initial build so we are up-to-date @@ -81,6 +80,8 @@ class CommandAuto(Command): out_folder = self.site.config['OUTPUT_FOLDER'] if options and options.get('browser'): - webbrowser.open('http://localhost:{0}'.format(port)) + browser = True + else: + browser = False - server.serve(port, None, out_folder) + server.serve(port, None, out_folder, True, browser) |
