biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / pastebinit / use-drv-etc.patch
blob6ccd7897ddf2711e7801797ebfad0dea62f590cf
1 diff --git a/pastebinit b/pastebinit
2 index 4e5f9ce..fe06bd3 100755
3 --- a/pastebinit
4 +++ b/pastebinit
5 @@ -91,7 +91,7 @@ try:
6 # Files found later override files found earlier.
7 pastebind = {}
8 confdirs = []
9 - for confdir in ['/usr/share', '/usr/local/share'] \
10 + for confdir in ['@etc@', '/usr/share', '/usr/local/share'] \
11 + list(reversed(os.environ.get('XDG_DATA_DIRS', '').split(':'))) \
12 + list(reversed(os.environ.get('XDG_CONFIG_DIRS', '').split(':'))) \
13 + ['/etc', '/usr/local/etc',