Skip to content

Instantly share code, notes, and snippets.

@wastee
Created December 23, 2018 06:04
Show Gist options
  • Save wastee/0c8e1353b261a24bcdbb401e47d18aba to your computer and use it in GitHub Desktop.
Save wastee/0c8e1353b261a24bcdbb401e47d18aba to your computer and use it in GitHub Desktop.
use it when you upgraded linvst
from shutil import copy
from glob import glob
from os import remove
# Original linvst.so file
ori_file = '/usr/lib/vst/linvst.so'
# IMPORTANT
# your wine vst folder
# delete this value and fill in
winevst_path = '/home/tee/.wa/drive_c/vst'
# get wine vsts path list
winevst_filelist = glob(f'{winevst_path}/**/*.so', recursive=True)
if __name__ == '__main__':
for x in winevst_filelist:
remove(x)
copy('/usr/lib/vst/linvst.so', x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment