$ python -c "import HasyUtils;HasyUtils.checkMacroServerEnvironment()"
The parameter is always the name of the script.