Skip to content

please define default location for settings.txt #18

Open

Description

@it-da-de

Hi,
I try the tool with a ionos 1und1 domain. I would like a definition of the location from the default config file exp: /usr/local/etc/settings.txt would be better then current directory. I found many settings.txt everywhere yesterday :-)
Thank you for that good solution!

Activity

  1. changed the title [-]Problem with update and status[/-] [+]please define default location for settings.txt[/+] on Dec 21, 2019
  2. pawel-kow commented on Jan 7, 2020

    @pawel-kow
    Member

    Hi @it-da-de,
    Indeed it would be nicer to have a more specific location for the config file.
    It must be done in the way it is working platform-independent, however.

    Looking briefly for options, it's not a trivial problem and the library available for the purpose https://github.com/ActiveState/appdirs does not seem to be well maintained and still with many open issues.
    It requires a bit of more investigation on the possible solution.

    In the mean time please use --config option to locate the config file at the desired location on your system.

  3. liput commented on Mar 25, 2021

    @liput

    I've manually specified where the setting file is (in another folder), but when it runs it creates a new settings.txt in the home folder. I think it does this as it adds the last updated time. It would be good that when using the explicit flag for the setting folder, you then write back to this file

    Oddly this behaviour does not happen when using the --ignore-previous-ip flag

    As a workaround I just mv the new file to overwrite the original settings.txt. But this is not really ideal

  4. pawel-kow commented on Mar 26, 2021

    @pawel-kow
    Member

    @liput moved your issue to #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions