FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
API-Examples/windows/APIExample/ci.py at dev/faceunity_optimization · Johankoi/API-Examples · GitHub
Johankoi
/
API-Examples
Public
forked from
AgoraIO/API-Examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
API-Examples
/
windows
/
APIExample
/
ci.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (18 loc) · 495 Bytes
Breadcrumbs
API-Examples
/
windows
/
APIExample
/
ci.py
Copy path
File metadata and controls
21 lines (18 loc) · 495 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- coding: UTF-8 -*-
import
re
import
os
def
main
():
appId
=
r'"<enter your agora app id>"'
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'"<enter your agora app id>"'
,
appString
,
content
)
f
.
seek
(
0
)
f
.
write
(
contentNew
)
f
.
truncate
()
if
__name__
==
"__main__"
:
main
()
Back
|
FazBrowse Home
|
New Git URL