Changeset 6688079 in tol for toltcl


Ignore:
Timestamp:
Mar 14, 2016, 12:49:45 PM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
c6181a1
Parents:
6755180
Message:

fixes #1920, se corrige tambien en tolcon, tolbase, tolsh

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7244 be4846ae-f051-483a-831f-b64e7d08527f

Location:
toltcl/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/tolsh.c

    r6755180 r6688079  
    6060#if defined(WIN32)
    6161  SetupDllSearchPath( argv0 );
     62  Tcl_VarEval( interp, "lappend", " auto_path", " [file join",
     63               " [file dir [file dir {", argv0,
     64               "} ] ] lib ]", NULL );
     65#else
     66  Tcl_VarEval( interp, "lappend", " auto_path", " [file join",
     67               " [file dir [file dir [expr {[file type {", argv0, "}] eq {link} ? [file readlink {", argv0, "}] : {", argv0 ,"}} ] ] ] lib ]", NULL );
    6268#endif   
    63   Tcl_VarEval( interp, "lappend", " auto_path", " [file join",
    64                " [file dir [file dir ", argv0,
    65                " ] ] lib ]", NULL );
    6669  if ( !Tcl_PkgRequire( interp, "TolshApp", TOLTCL_VERSION, 1) )
    6770    {
  • toltcl/generic/toltcl.c

    r6755180 r6688079  
    217217  int lang;
    218218  char* vmode;
     219  const char *argv0 = Tcl_GetNameOfExecutable();
     220
    219221  if (objc > 3) {
    220222    Tcl_AppendResult(interp, "wrong # args: should be \"",
    … …  
    246248     */
    247249   
     250    Tcl_VarEval(
    248251    InitTolKernel(Tcl_GetNameOfExecutable(), lang, vmode&&vmode[0]?vmode:NULL);
    249252   
Note: See TracChangeset for help on using the changeset viewer.