Ticket #147: libbasic_fix_1_of_1_rev_5dc1f52e6053_Issue__147___Wrong_execpath_in_Windows.patch

File libbasic_fix_1_of_1_rev_5dc1f52e6053_Issue__147___Wrong_execpath_in_Windows.patch, 1.4 KB (added by patrik.svestka@…, 7 years ago)

The patch fixes a double backslash issue in the path

  • AbstractOperatingSystem.st

    # HG changeset patch
    # User Patrik Svestka <patrik.svestka@gmail.com>
    # Date 1496121863 -7200
    #      Tue May 30 07:24:23 2017 +0200
    # Branch jv
    # Node ID 5dc1f52e6053385c3c0313f8d42afade811b9422
    # Parent  dc75b3c9c5375fce7d977b0604bb94cc417fca4c
    Issue #147 - Wrong execpath in Windows
    The issue is connected moste probably to copy & paste error.  At the end of path
    there were doubled backslashes (\\).  After changing it to single backslash (\)
    there is no need to specify the STX_PACKAGEPATH and change directory.
    
    
    More at: https://swing.fit.cvut.cz/projects/stx-jv/ticket/147
    
    diff -r dc75b3c9c537 -r 5dc1f52e6053 AbstractOperatingSystem.st
    a b  
    52025202            packagePath add: (execPath copyTo: execPath size - '/stx/projects/smalltalk/stx' size)
    52035203        ] ifFalse:[
    52045204                self isMSWINDOWSlike ifTrue:[
    5205                         ((execPath endsWith: '\stx\projects\smalltalk\\stx.com') or:[execPath endsWith: '\stx\projects\smalltalk\\stx.exe']) ifTrue:[
    5206                                 packagePath add: (execPath copyTo: execPath size - '\stx\projects\smalltalk\\stx.exe' size)
     5205                        ((execPath endsWith: '\stx\projects\smalltalk\stx.com') or:[execPath endsWith: '\stx\projects\smalltalk\stx.exe']) ifTrue:[
     5206                                packagePath add: (execPath copyTo: execPath size - '\stx\projects\smalltalk\stx.exe' size)
    52075207                        ]
    52085208                ]
    52095209        ]