Commit 07b114eb authored by Mark Hymers's avatar Mark Hymers

Fix patch

Signed-off-by: Mark Hymers's avatarMark Hymers <mark.hymers@ynic.york.ac.uk>
parent 78aff6c0
......@@ -8,7 +8,7 @@ Signed-off-by: Mark Hymers <mark.hymers@ynic.york.ac.uk>
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/psychopy/iohub/client/__init__.py b/psychopy/iohub/client/__init__.py
index 3474dc9..9ec186d 100644
index 3474dc9..0ad0375 100644
--- a/psychopy/iohub/client/__init__.py
+++ b/psychopy/iohub/client/__init__.py
@@ -850,11 +850,13 @@ class ioHubConnection(object):
......@@ -22,7 +22,7 @@ index 3474dc9..9ec186d 100644
- cfpath = os.path.join(IOHUB_DIRECTORY, 'default_config.yaml')
+ from pathlib import Path
+ rootScriptPath = os.path.join(str(Path.home()), '.config', 'iohub')
+ os.path.makedirs(rootScriptPath, exist_ok=True)
+ os.makedirs(rootScriptPath, exist_ok=True)
+ # Allow user to have local config file
+ cfpath = os.path.join(rootScriptPath, 'default_config.yaml')
+ if not os.path.exists(cfpath):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment