Store $USER in metadata

This commit is contained in:
Marcin Kulik
2012-04-03 18:49:47 +02:00
parent 781ad3b089
commit 4c61fbe38a

View File

@@ -58,12 +58,14 @@ class AsciiCast(object):
command = self.command and ' '.join(self.command)
uname = self._get_cmd_output(['uname', '-srvp'])
username = os.environ['USER']
shell = os.environ['SHELL']
term = os.environ['TERM']
lines = int(self._get_cmd_output(['tput', 'lines']))
columns = int(self._get_cmd_output(['tput', 'cols']))
data = {
'username' : username,
'user_token' : self.user_token,
'duration' : self.duration,
'recorded_at': recorded_at,