Open utterances-bot opened 3 years ago
But sometimes environment variables do not work. For example, I have been unable to figure out how to use an environment variable in either of the following config.py settings.
for example:
import os
_user_dir = "C:\\Users\\" + os.environ.get('USERNAME', 'default_value')
# need at least Python3.8 for string formatting: f''
config.bind(',t', f'spawn -u "{_user_dir}\\Sync\\qb\\tumblelog-wrapper.cmd"')
ii.com: qutebrowser Tips and Fragments
http://www.ii.com/qutebrowser-tips-fragments/