3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-23 04:43:42 +01:00
dft_tools/cmake/sitecustomize.py
2020-04-08 16:13:42 -04:00

9 lines
284 B
Python

def application_pytriqs_import(name,*args,**kwargs):
if name.startswith('@package_name@'):
name = name[len('@package_name@')+1:]
return builtin_import(name,*args,**kwargs)
import builtins
builtins.__import__, builtin_import = application_pytriqs_import, builtins.__import__