Skip to content

Instantly share code, notes, and snippets.

View nagayev's full-sized avatar

Marat Nagayev nagayev

View GitHub Profile
@nagayev
nagayev / req.py
Created November 28, 2017 18:56
Require python scripts
def require(filename,mode=1,module=""):
with open(filename,"r") as f:
content=f.read()
arr=[]
buf=[]
f.close()
arr=content.split(",")
for i in range(len(arr)):
if mode==1:
exec("import " + arr[i])