diff --git a/src/modules/punk/mix/util-999999.0a1.0.tm b/src/modules/punk/mix/util-999999.0a1.0.tm index 09b06b6b..78a8568b 100644 --- a/src/modules/punk/mix/util-999999.0a1.0.tm +++ b/src/modules/punk/mix/util-999999.0a1.0.tm @@ -107,9 +107,6 @@ namespace eval punk::mix::util { set opts [dict remove $opts -noredirect] } - if {$::tcl_platform(platform) ne "windows"} { - return [fileutil::cat {*}$args] - } set finalpaths [list] set is_windows [string match *windows* $::tcl_platform(platform)] @@ -120,7 +117,9 @@ namespace eval punk::mix::util { lappend finalpaths $p } } + #fauxlink is platform agnostic. set has_fauxlink [expr {![catch {package require fauxlink}]}] + #While .lnk files are windows specific, we want to be able to resolve them on other platforms if possible, so we try to load punk::winlnk on all platforms. set has_winlnk [expr {![catch {package require punk::winlnk}]}] if {!$opt_noredirect && ($has_fauxlink || $has_winlnk)} {