3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 11:13:46 +01:00
dft_tools/share/sitecustomize.py

9 lines
280 B
Python
Raw Normal View History

2020-05-27 17:30:24 +02:00
def application_triqs_import(name,*args,**kwargs):
if name.startswith('@package_name@'):
name = name[len('@package_name@')+1:]
return builtin_import(name,*args,**kwargs)
import builtins
2020-05-27 17:30:24 +02:00
builtins.__import__, builtin_import = application_triqs_import, builtins.__import__