<https://forum.vectorworks.net/index.php?/topic/45379-global-variables-with-imported-functions/#comment-231583>
<http://schema.org/text>
"You have your scope backwards. In main, you can call a variable defined in one of your imported modules, but not the other way around. In python, an imported module should be able to function as stand-alone scripts.\n \n\n\n\tYour solution would be to design your functions so they accept X, y, w, and h as arguments. \n \n\n\n\tThe only real reason to divide your code into separate files is if there are portions you want to reuse for other projects (and if that is the case, they shouldn't be dependent on global variables anyway). You can use classes and functions to organize your code within one file. \n \n\n\n\tHTH,\n \n\n\n\tJosh\n \n"
<https://forum.vectorworks.net/index.php?/topic/45379-global-variables-with-imported-functions/#comment-231565>