linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / misc / fxlinuxprintutil / fxlputil.tcl.patch
blob2bfbab450cb09781f8ed39a5cfc831c23c807e2e
1 diff --git a/usr/bin/fxlputil.tcl b/usr/bin/fxlputil.tcl
2 index 02eeaf6..788ed5a 100755
3 --- a/usr/bin/fxlputil.tcl
4 +++ b/usr/bin/fxlputil.tcl
5 @@ -25,14 +25,8 @@ catch {namespace import combobox::*}
9 -lappend auto_path $cwd
11 -if {[lsearch $auto_path /usr/lib] == -1} {
12 - lappend auto_path /usr/lib
14 -if {[lsearch $auto_path /usr/lib64] == -1} {
15 - lappend auto_path /usr/lib64
17 +# https://stackoverflow.com/a/23287132
18 +lappend auto_path [file join [file dirname [file dirname [info script]]] lib]
20 package require fxlputil