The string OS variable is local to the main() function, so its name is not a public, globally available symbol. That's why it is inaccessible in other modules. To make it global, define it outside the main().