#!/usr/bin/env python
# open-vm-tools settings
import os
import re
vmtools_config = """
[guestinfo]
poll-interval=30
"""
if os.path.isdir('/etc/vmware-tools'):
with open('/etc/vmware-tools/tools.conf', 'w') as f:
f.write(vmtools_config)
else:
print('Open VM Tools not found. Skipping its configuration.')