Changeset 1715

Show
Ignore:
Timestamp:
10/29/08 15:02:20 (2 months ago)
Author:
Chuck.Esterbrook
Message:

Code cleanup.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/InstallFromWorkspace.cobra

    r1714 r1715  
    287287        def locateGacUtil 
    288288                .startStage('Locate gacutil.exe') 
     289                slash = .slash 
    289290                gacutil = 'gacutil' 
    290291                p = Process() 
     
    314315                        programFilesDir = Environment.getFolderPath(Environment.SpecialFolder.ProgramFiles) 
    315316                        for dir in dirs 
    316                                 path = '[programFilesDir]\\[dir][.slash][gacutil]' 
     317                                path = '[programFilesDir][slash][dir][slash][gacutil]' 
    317318                                print 'checking:', path 
    318319                                if File.exists(path) 
     
    329330                                                drive = drive[:1]  # normalize to just one character 
    330331                                                if drive <= 'B', continue 
    331                                                 path = '[drive]:\\Program Files\\[dir][.slash][gacutil]' 
     332                                                path = '[drive]:[slash]Program Files[slash][dir][slash][gacutil]' 
    332333                                                print 'checking:', path 
    333334                                                if File.exists(path)