Skip to content

Instantly share code, notes, and snippets.

View gamesbrainiac's full-sized avatar
💭
Gone Fishing.

Nafiul Islam gamesbrainiac

💭
Gone Fishing.
View GitHub Profile
@gamesbrainiac
gamesbrainiac / Auto generate requirements
Created February 5, 2014 15:49
Automatically generates the requirements of your interpreter through a pip freeze.
# encoding=utf-8
__author__ = 'Quazi Nafiul Islam'
import sys
import pip
if __name__ == '__main__':
sys.stdout = open('requirements.txt', 'w')
pip.main(['freeze'])