Bug 877072 - Script execution order for nested imports. r=mrbkap