Skip to content

Instantly share code, notes, and snippets.

@aavrug
Created December 15, 2016 05:27
Show Gist options
  • Save aavrug/f7536726826c968004ad746b5f93e180 to your computer and use it in GitHub Desktop.
Save aavrug/f7536726826c968004ad746b5f93e180 to your computer and use it in GitHub Desktop.
f = open(hello_file, 'a+')
f.seek(-1,2)
if f.read():
path = '\n'+path
f.write(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment