import sys
import yaml


def readFile(filepath):
    with open(filepath, 'r') as f:
        out = f.read()
        return out
    return []


def main(argv):
    # create commonServer js file to extract doc from
    jsScript = readFile('./Packs/Base/Scripts/CommonServer/CommonServer.js')
    with open('./Documentation/commonServerJsDoc.js', 'w') as fp:
        fp.write(jsScript)


if __name__ == "__main__":
    main(sys.argv[1:])

@@ -8,20 +8,8 @@
 sys%0A
-import yaml%0A
 %0A%0Ade

update extract_common_server_js.py (#17049)