Bugfix: Ensure ASCIINEMA_REC set on record (#372).

This commit is contained in:
landonb
2020-03-24 23:53:10 -05:00
committed by Marcin Kulik
parent 350d5e9d8b
commit 6a4ca6f1d2

View File

@@ -15,7 +15,7 @@ def record(path, command=None, append=False, idle_time_limit=None,
if command_env is None:
command_env = os.environ.copy()
command_env['ASCIINEMA_REC'] = '1'
command_env['ASCIINEMA_REC'] = '1'
if capture_env is None:
capture_env = ['SHELL', 'TERM']