I'm in a situation where I need to run alembic in a compiled package with all source files stripped away. Right now it's giving me a file not found error with the line
fp = open(path, 'rb')
where path is the full path of where the .py file is supposed to be; so the .pyo file is right in there but
load_module doesn't see it.