From 6c64a64d33b66bd8a46e19d6734a1f5eedc58dbd Mon Sep 17 00:00:00 2001 From: Matt Niksch Date: Fri, 6 Mar 2020 11:25:47 -0600 Subject: [PATCH] added dir --- step_1_save_tables.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/step_1_save_tables.py b/step_1_save_tables.py index 92b7cb3..8b0158d 100644 --- a/step_1_save_tables.py +++ b/step_1_save_tables.py @@ -6,10 +6,14 @@ stash_dir """ import sys +import os from modules import sf_interface def main(cred_file): + if not os.path.exists('stash_dir'): + os.mkdir('stash_dir') + sf = sf_interface.get_sf(cred_file[:-3]) for fn, obj in ( ('contacts.csv', sf.Contact),