mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-27 12:18:06 +00:00
16 lines
347 B
Python
16 lines
347 B
Python
import sys
|
|
|
|
|
|
if __name__ == "__main__":
|
|
if len(sys.argv) < 2:
|
|
print("Provide a path")
|
|
filePath = sys.argv[1]
|
|
|
|
with open(filePath, "r+") as fp:
|
|
content = fp.read()
|
|
content = content.replace('href="../', 'href="/').replace('src="../', 'src="/')
|
|
fp.seek(0)
|
|
fp.truncate()
|
|
|
|
fp.write(content)
|