Home directory on config.cson


I have this in my config.cson file:

  rulesets: "/Users/mike/.atom/phpmdruleset.xml"

Is it possible to change /Users/mike to something that works like ~ or $HOME? Those don’t seem to work. Or if I knew the relative path to phpmdruleset.xml, I don’t know where it starts from…

The idea is to use the same config file in multiple computers with different users.


There isn’t any built-in support for reading path information from the Atom config. They’re just strings as far as Atom is concerned. Packages have to implement support for relativizing paths themselves.