-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure it works in Mac #6
Comments
ghost
assigned domoritz
Jul 15, 2013
I'm looking into this. It's funny that script on mac does not have
|
Should be something like if platform.system() == 'Darwin':
shell_args = '-qt 0'
else:
shell_args = '-qf'
os.system('script %s %s' % (shell_args, filename)) |
Okay, apparently there is a difference in the way files are read. On mac, I can't get the additional content with |
domoritz
added a commit
that referenced
this issue
Jul 15, 2013
The problem is that script behaves differently on mac os and also file.read does not return anything after it has read the file once.
domoritz
added a commit
that referenced
this issue
Jul 15, 2013
…make sure that EOF is not cached. See http://docs.python.org/2/library/stdtypes.html#file.read.
domoritz
added a commit
that referenced
this issue
Jul 16, 2013
The problem is that script behaves differently on mac os and also file.read does not return anything after it has read the file once. We have to add the seek to make sure that EOF is not cached. See http://docs.python.org/2/library/stdtypes.html#file.read.
vitorbaptista
added a commit
that referenced
this issue
Jul 18, 2013
[#6] Hack to make it work on mac os
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We might have to use ttyrec to do so. Check shelr for an example.
The text was updated successfully, but these errors were encountered: