Skip to content

Commit

Permalink
Dropping the jsonmerge dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Apr 20, 2020
1 parent 75e7358 commit a8bb9d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM leader.telekube.local:5000/ae-editor:5.4.0-46.g640c57da1
COPY . /aesrc/vscode/
RUN set -ex \
&& /opt/continuum/anaconda/condabin/conda install -c defusco jsonmerge -y -n lab_launch \
&& rm -f /usr/bin/git /usr/bin/git-* \
&& for fname in /opt/continuum/anaconda/envs/lab_launch/bin/{git,git-*}; do \
ln -s $fname /usr/bin/; \
Expand Down
5 changes: 2 additions & 3 deletions merge_vscode_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import sys
import os
import json
import jsonmerge

user_settings_path = sys.argv[1]

Expand Down Expand Up @@ -81,7 +80,7 @@
% (user_settings_path, merged_settings_path))
f.write(merged_settings)
else:
merged_json = jsonmerge.merge(user_json, project_json)
user_json.update(project_json)
with open(merged_settings_path, 'w') as f:
print('Writing merged settings to %s' % merged_settings_path)
f.write(json.dumps(merged_json, indent=4, sort_keys=True))
f.write(json.dumps(user_json, indent=4, sort_keys=True))

0 comments on commit a8bb9d1

Please sign in to comment.