Lyle-Tafoya / Steam-Categorizer

Automatically generate categories for games in your Steam library
GNU General Public License v3.0
25 stars 2 forks source link

Can't use relative path #20

Closed paris-ci closed 7 years ago

paris-ci commented 7 years ago

Using relative path in home directory won't work.

steam-categorizer -p ./.config/steam_categorizer.json -c ./Library/Application\ Support/Steam/userdata/131245987/7/remote/sharedconfig.vdf
/Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/lib/steam/categorizer.rb:19:in `read': Not a directory @ rb_sysopen - /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/lib/steam/categorizer.rb/.config/steam_categorizer.json (Errno::ENOTDIR)
    from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/lib/steam/categorizer.rb:19:in `initialize'
    from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/exe/steam-categorizer:19:in `new'
    from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/exe/steam-categorizer:19:in `<top (required)>'
    from /Users/arthur/.rvm/gems/ruby-2.3.1/bin/steam-categorizer:22:in `load'
    from /Users/arthur/.rvm/gems/ruby-2.3.1/bin/steam-categorizer:22:in `<main>'

But using tildes will :

$ steam-categorizer -p ~/.config/steam_categorizer.json -c ~/Library/Application\ Support/Steam/userdata/131245987/7/remote/sharedconfig.vdf 
 INFO  Steam::Categorizer::GameLibrary : Getting list of games...
 INFO  Steam::Categorizer::GameLibrary : Collecting metadata...
 INFO  Steam::Categorizer::GameLibrary : Getting game page for BIT.TRIP Presents... Runner2: Future Legend of Rhythm Alien...
...
Lyle-Tafoya commented 7 years ago

This issue should be solved with the latest version in the master branch