problem reading config file

2003-01-13
2003-02-25
  • - 2003-01-13

    Hi,

    I downloaded cvs januari 12th (morning) and installed on a win2k machine. Boa started with an error that it could not access the config file.
    The problem is that the path isn't constructed right.

    In Utils.py:

    def createAndReadConfig(name, forPlatform = 1):
        """ Return an initialised ConfigFile object """
        confFile = '%s/%s%s.cfg' % (Preferences.rcPath, name,
            forPlatform and wx.wxPlatform == '__WXMSW__' and '.msw' \         or forPlatform and '.gtk' or '')

    The problem is the "/" in ''%s/%s%s.cfg'. This results in a path that w2k does not dig.
    After changing the '/' in '\' boa starts up nicely, but the same kind of problem occurs in other places.

    You may want to change the way you build up paths in the boa code.

    regards,
    Zaphod

     
    • Riaan Booysen

      Riaan Booysen - 2003-02-25

      For the record, I could not reproduce the problem and it went away by itself for the original poster.
      Possibly an broken CVS checkout.

      Riaan.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks