We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb2067 commit 2735750Copy full SHA for 2735750
labscript_profile/create.py
@@ -14,8 +14,11 @@ def make_shared_secret(directory):
14
"""Create a new zprocess shared secret file in the given directory and return its
15
filepath"""
16
cmd = [sys.executable, '-m', 'zprocess.makesecret']
17
- path = check_output(cmd, cwd=directory).decode('utf8').splitlines()[-1].strip()
18
- return Path(path)
+ output = check_output(cmd, cwd=directory).decode('utf8')
+ for line in output.splitlines():
19
+ if 'zpsecret' in line and '.key' in line:
20
+ return Path(line.strip())
21
+ raise RuntimeError("Could not parse output of zprocess.makesecret")
22
23
24
def make_labconfig_file():
0 commit comments