

def main():
    platform_dirs = os.walk(testFolder).next()[1]
    if os.path.exists('./documentation2.html'):
        os.remove('./documentation2.html')
    for packageName in platform_dirs:
        packageTransformedName = capitalizePackage(packageName)
        html = open('./documentation2.html', 'a')
        html.write(((('<li> ' + packageTransformedName) + ' Tests </li>') + '\n <ul> \n'))
        testPackagePath = os.path.join(testFolder, packageName)
        html.write((('<li><a href="' + testPackagePath) + '/html/index.html">HTML from Doxygen</a></li>\n'))
        pdf = packageName.split('_')
        pdf.remove('platform')
        pdf.remove('test')
        pdf = '_'.join(pdf)
        pdf += '.pdf'
        html.write((('<li><a href="' + os.path.join(testPackagePath, pdf)) + '">PDF from Doxygen</a></li>\n'))
        html.write('</ul>\n')
        html.close()

dataset/ETHPy150Open rapp-project/rapp-platform/rapp_scripts/documentation/documentation_gh_pages/create_test_hyperlinks.py main/original