Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ciupicri
on Feb 2, 2019
|
parent
|
context
|
favorite
| on:
A Python Interpreter Written in Rust
While your code was valid, open('~/.ssh/id_rsa.pub'...) won't work on any Python other interpreter, you need to expand ~ from the path. For example you can use:
open(os.path.expanduser('~/.ssh/id_rsa.pub'), 'r')
rmdashrfstar
on Feb 3, 2019
[–]
Does this line not cause the above stacktrace?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: