Ignore:
Timestamp:
Jun 27, 2011, 9:30:08 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
95c8c6d
Parents:
9417624
Message:

on unix location of project.ini could be read only

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/init_toltk.tcl

    r9417624 rd007920  
    144144  set fileProject [file join $dirPrjIni "project.ini"]
    145145  if {[file exists $fileProject]} {
    146     set ok 1
     146    set ok [ file writable $fileProject ]
    147147  } else {
    148148    set fileProject [file join $dir "project.ini"]
    149149    if {[file exists $fileProject]} {
    150       set ok 1 
     150      set ok [ file writable $fileProject ] 
    151151    }
    152152  }
    … …  
    154154  if {$ok} {
    155155    set id [iniparse:openfile $fileProject]
    156     ::iniFile::Create $fileProject
     156    catch { ::iniFile::Create $fileProject }
    157157    set values {}
    158158    foreach prj $iniparse($id,sections) {
Note: See TracChangeset for help on using the changeset viewer.