Skip to content

Commit db90c38

Browse files
committed
feat: generate_vscode_snippets script was updated
1 parent 9b3c7b2 commit db90c38

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

generate_vscode_snippets.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import sys
22
import os
33
import json
4+
import platform
45

56
HOME = os.path.expanduser("~")
67
PATH = HOME + '/.config/Code/User/snippets/cpp.json'
7-
# for windows
8-
# PATH = HOME + '/AppData/Roaming/Code/User/snippets/cpp.json'
8+
9+
if platform.system() in ['Windows', 'Win32']:
10+
# for windows
11+
PATH = HOME + '/AppData/Roaming/Code/User/snippets/cpp.json'
912

1013
def add_snippets_to_vscode(root_path, filename, ext):
1114
path = root_path + filename + '.' + ext

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy