improve _driver cleanup
parent
387ba38074
commit
69df93b81a
|
|
@ -26,6 +26,7 @@ class Grattoir(object):
|
||||||
self._driver = None
|
self._driver = None
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
|
self._driver = None
|
||||||
p_path = tor_profile()
|
p_path = tor_profile()
|
||||||
profile = firefox.firefox_profile.FirefoxProfile(profile_directory=p_path)
|
profile = firefox.firefox_profile.FirefoxProfile(profile_directory=p_path)
|
||||||
b_path = tor_browser_binary_path()
|
b_path = tor_browser_binary_path()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue