diff --git a/pciSeq/src/diagnostics/launch_diagnostics.py b/pciSeq/src/diagnostics/launch_diagnostics.py index 44efe96c..2dd268a7 100644 --- a/pciSeq/src/diagnostics/launch_diagnostics.py +++ b/pciSeq/src/diagnostics/launch_diagnostics.py @@ -31,6 +31,7 @@ def make_credentials(): might pause the program flow) """ credentials = os.path.join(Path.home(), '.streamlit', 'credentials.toml') + Path(credentials).parent.mkdir(parents=True, exist_ok=True) mode = 'rt' if os.path.exists(credentials) else 'w+' with open(credentials, mode) as fp: doc = tomlkit.load(fp) @@ -44,4 +45,4 @@ def append_email(doc, fname): if doc.get('general').get('email') is None: doc.get('general').add("email", "") with open(fname, 'w') as outfile: - tomlkit.dump(doc, outfile) + tomlkit.dump(doc, outfile) \ No newline at end of file