[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/thedeveloper19/API-Examples/master/windows/APIExample/ci.py [Back]  [Original]

# -*- coding: UTF-8 -*-
import re
import os

def main():

    appId = r'""'
    if "AGORA_APP_ID" in os.environ:
        appId = os.environ["AGORA_APP_ID"]
        appString = "\""+appId+"\""
    else:
        appString = str(appId)
    f = open("./APIExample/stdafx.h", 'r+')
    content = f.read()
    contentNew = re.sub(r'""', appString, content)
    f.seek(0)
    f.write(contentNew)
    f.truncate()

if __name__ == "__main__":
    main()

Web Proxy Viewer  |  New URL  |  Original Page