Skip to content

Commit 4c7d665

Browse files
fix: fix imgRelativePath script
1 parent 0e18103 commit 4c7d665

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

frontend/tools/imgRelativePath.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ def findReplace(directory, find, replace, filePattern):
99
with open(filepath, "w") as f:
1010
f.write(s)
1111

12+
13+
loc = os.path.join(os.getcwd(), "..", "src")
1214
findReplace(
13-
"/home/akshbansal/d/code/web/github/TPC-website/frontend/src",
15+
loc,
1416
"src=\"/images", "src=\"/webix.iiitdmj.ac.in/images"
1517
,"*.tsx"
1618
)
1719
findReplace(
18-
"/home/akshbansal/d/code/web/github/TPC-website/frontend/src",
20+
loc,
1921
"\"/images", "\"/webix.iiitdmj.ac.in/images"
2022
,"*.ts"
2123
)
2224
findReplace(
23-
"/home/akshbansal/d/code/web/github/TPC-website/frontend/src",
25+
loc,
2426
"image=\"/images", "image=\"/webix.iiitdmj.ac.in/images"
2527
,"*.tsx"
2628
)
29+
print("Done!")
30+

0 commit comments

Comments
 (0)