Informatique/MPSI/random/randomm.py

15 lines
331 B
Python
Raw Permalink Normal View History

2019-11-23 15:22:53 +01:00
#from random import *
#import os
#os.chdir("../")
from random import *
def import_non_local(name, custom_name=None):
import imp, sys
custom_name = custom_name or name
f, pathname, desc = imp.find_module(name, sys.path[1:])
module = imp.load_module(custom_name, f, pathname, desc)
f.close()
return module