Skip to content

Commit

Permalink
Pass in base and source separately when setting save directory.
Browse files Browse the repository at this point in the history
Structure is important for comparison script.
  • Loading branch information
npilon committed Mar 13, 2014
1 parent 94f24f9 commit 5101982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lettuce_webdriver/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
)
import os.path

def set_save_directory(root):
def set_save_directory(base, source):
"""Sets the root save directory for saving screenshots.
Screenshots will be saved in subdirectories under this directory by
browser window size. """
root = os.path.join(base, source)
if not os.path.isdir(root):
os.makedirs(root)

Expand Down

0 comments on commit 5101982

Please sign in to comment.