summaryrefslogtreecommitdiff
path: root/tests/twisted/dispatcher/create-at-startup.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/dispatcher/create-at-startup.py')
-rw-r--r--tests/twisted/dispatcher/create-at-startup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/twisted/dispatcher/create-at-startup.py b/tests/twisted/dispatcher/create-at-startup.py
index c4e24765..992145fb 100644
--- a/tests/twisted/dispatcher/create-at-startup.py
+++ b/tests/twisted/dispatcher/create-at-startup.py
@@ -35,6 +35,11 @@ import constants as cs
def preseed():
accounts_dir = os.environ['MC_ACCOUNT_DIR']
+ try:
+ os.mkdir(accounts_dir, 0700)
+ except OSError:
+ pass
+
accounts_cfg = open(accounts_dir + '/accounts.cfg', 'w')
accounts_cfg.write("""# Telepathy accounts
[fakecm/fakeprotocol/jc_2edenton_40unatco_2eint]