diff options
| author | apnadkarni <apnmbx-wits@yahoo.com> | 2022-07-08 04:06:35 (GMT) |
|---|---|---|
| committer | apnadkarni <apnmbx-wits@yahoo.com> | 2022-07-08 04:06:35 (GMT) |
| commit | 9336a020ee8538c5927e9cbe8cbad80ef915c741 (patch) | |
| tree | f6b493abe07003f4e3c9fdb896f599c7667a2753 /unix/tclUnixInit.c | |
| parent | aa59356ae9e1626385a69af39d3e7c060a53c4c4 (diff) | |
| download | tcl-9336a020ee8538c5927e9cbe8cbad80ef915c741.zip tcl-9336a020ee8538c5927e9cbe8cbad80ef915c741.tar.gz tcl-9336a020ee8538c5927e9cbe8cbad80ef915c741.tar.bz2 | |
Start on TIP-602 implementation. Work in progress
Diffstat (limited to 'unix/tclUnixInit.c')
| -rw-r--r-- | unix/tclUnixInit.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index ec85fbe..9d84a21 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -863,6 +863,21 @@ TclpSetVariables( Tcl_SetVar2(interp, "tcl_pkgPath", NULL, pkgPath, TCL_GLOBAL_ONLY); } +#ifndef TCL_TILDE_EXPAND + { + Tcl_Obj *resolvedPaths = + TclResolveTildePaths(interp, + Tcl_GetVar2Ex( + interp, + "tcl_pkgPath", + NULL, + TCL_GLOBAL_ONLY)); + if (resolvedPaths) { + Tcl_SetVar2Ex(interp, "tcl_pkgPath", NULL, resolvedPaths, TCL_GLOBAL_ONLY); + } + } +#endif + #ifdef DJGPP Tcl_SetVar2(interp, "tcl_platform", "platform", "dos", TCL_GLOBAL_ONLY); #else |
