Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

APPDIR problems

Developers
2005-01-21
2013-04-26
  • Hi Dan,

    the use of "appdata" bring along some problems.

    I use DrPython on 2 PC's  (the appdata directory isn't the same)
    I have scripts and plugins all in preferences dir, to make backup of files easier.
    There is the problem, that in drscripts.dat, the absolute
    path is stored (for example in drscripts.dat)
    We have an option of drscripts directory, so the files could be stored relativly to the base
    dir.

    I could split this (plugins, scripts and preferences) in different base dir,
    but then, all is to fragmented.

    I'd like to have it as before.

    I remember, that one suggestion was command line parameter.
    Other possibility would be a extra setting in preference, or a C:/.drpython.ini
    file or something or simply of the current drive in root directory .
    If this file exists, it reads out the preferences or homedir variable.

    What thoughts?

     
    • How bothersome.

      Well, For backing up drscripts, if you
      use the Export DrScripts to / from zip,
      it will grab them automatically from wherever they are
      on your computer.

      However, I agree there should be more flexibility in regards to the homedirectory.

      I think a command line option would be a good choice:

      drpython --preferencesdirectory="c:/MyStuff/"

      Then DrFrame.GetPreferencesDirectory would yield
      "C:/MyStuff/drpython/".

      I think this is better than writing the actual file,
      and more intuitive than a .ini file in the root dir.