def main(arguments, out=sys.stdout): # Set the path PathMapper.set_root_path(os.path.dirname(os.path.abspath(__name__))) try: parsedArgs = parse_arguments(arguments, output=out) except PyCException as e: out.write(e.message) return 1
def test_set_root_path(self): """ Ensure PathMapper.set_root_path correctly sets root path """ PathMapper.set_root_path('rootPath') self.assertEqual(PathMapper._rootPath, 'rootPath')