Skip to content

Instantly share code, notes, and snippets.

@aldeka
Created September 15, 2013 23:00
Show Gist options
  • Save aldeka/6575032 to your computer and use it in GitHub Desktop.
Save aldeka/6575032 to your computer and use it in GitHub Desktop.
Sometimes people distribute python scripts that are licensed under the AGPL. Which means that they need to provide their own source code, lest they be in violation. Ergo...
import inspect, os, sys
fin = open(os.path.abspath(inspect.getfile(inspect.currentframe())))
for line in fin:
sys.stdout.write(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment