about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/fxlinuxprintutil/fxlputil.tcl.patch
blob: 2bfbab450cb09781f8ed39a5cfc831c23c807e2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/usr/bin/fxlputil.tcl b/usr/bin/fxlputil.tcl
index 02eeaf6..788ed5a 100755
--- a/usr/bin/fxlputil.tcl
+++ b/usr/bin/fxlputil.tcl
@@ -25,14 +25,8 @@ catch {namespace import combobox::*}
 
 
 
-lappend auto_path $cwd
-
-if {[lsearch $auto_path /usr/lib] == -1} {
-	lappend auto_path /usr/lib
-}
-if {[lsearch $auto_path /usr/lib64] == -1} {
-	lappend auto_path /usr/lib64
-}
+# https://stackoverflow.com/a/23287132
+lappend auto_path [file join [file dirname [file dirname [info script]]] lib]
 
 package require fxlputil