Skip to content

Instantly share code, notes, and snippets.

@v6ak
Created March 8, 2011 20:03
Show Gist options
  • Select an option

  • Save v6ak/860918 to your computer and use it in GitHub Desktop.

Select an option

Save v6ak/860918 to your computer and use it in GitHub Desktop.
Takto jsem si musel upravit skripty ke staženým zdrojákům Androidu, aby používaly Python 2 a ne Python 3...
find -executable | xargs sed -i 's/#!\/usr\/bin\/python/#\/usr\/bin\/python2/'
find -executable | xargs sed -i 's/\"\"\"exec\" python/\"\"\"exec\" python2/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment