diff options
author | Code Raguet <ignacio.code@gmail.com> | 2013-10-01 20:23:21 (GMT) |
---|---|---|
committer | Code Raguet <ignacio.code@gmail.com> | 2013-10-01 20:23:21 (GMT) |
commit | 729a62cb39435e9c8b71c18a0ed7308a60f2a23c (patch) | |
tree | 422da592b01f7b47abf64a050b2594b13c90dc7e | |
parent | dfe13ed90b618d4d372bb9cc85257cf0ddd0fa7c (diff) |
add create_results_dir function
-rw-r--r-- | webapp/webapp/features/terrain.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/webapp/features/terrain.py b/webapp/webapp/features/terrain.py index 6cb1f87..8a72da7 100644 --- a/webapp/webapp/features/terrain.py +++ b/webapp/webapp/features/terrain.py @@ -17,6 +17,14 @@ def set_browser(): 'features/fixtures') +def create_results_dir(): + dir_ = settings.RESULT_BCK_ROOT + try: + os.mkdir(dir_) + except OSError: + print "\n INFO: {0} ya existe".format(dir_) + + @after.all def exit_browser(total): world.browser.quit() |