summarylogtreecommitdiffstats
path: root/patch.py
blob: 1b15384dba904a46dd6e40627bb50eec30de90ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

import sys
import json
import os

file_path = sys.argv[1]

with open(file_path, "r") as rfile:
    data = json.load(rfile)
data["contributes"]["configuration"]["properties"]["rust-analyzer.server.path"]["default"] = "/usr/bin/rust-analyzer"
with open(file_path, "w") as wfile:
    json.dump(data, wfile, indent='\t')