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.
2 parents c5e19fa + d2c922c commit 77e75afCopy full SHA for 77e75af
tmuxp/cli.py
@@ -388,6 +388,9 @@ def command_freeze(args):
388
389
dest = os.path.abspath(os.path.relpath(os.path.expanduser(dest)))
390
if args.answer_yes or prompt_yes_no('Save to %s?' % dest):
391
+ destdir = os.path.dirname(dest)
392
+ if not os.path.isdir(destdir):
393
+ os.makedirs(destdir)
394
buf = open(dest, 'w')
395
buf.write(newconfig)
396
buf.close()
0 commit comments