From the discussion. I found how to change the assert rewriting via _early_rewrite_bailout function. From here, I can found rootdir via os.getcwd(). May be there is a better way to do this? Continue reading...