Arrowbox / weigh-the-spire

Stats for Slay The Spire
1 stars 1 forks source link

Doesn't work on Mac #2

Open ghost opened 5 years ago

ghost commented 5 years ago

On the mac (my Mac anyway), apps are packaged into special folders

The correct path needed is

/Users/**********/Library/Application Support/Steam/steamapps/common/SlayTheSpire/SlayTheSpire.app/Contents/Resources/runs

insert

 if "darwin" in sys.platform:
    location = location[0:-1] + ["SlayTheSpire.app", "Contents", "Resources"] + location[-1:]

after line 22 of __main__.py

Arrowbox commented 5 years ago

Would you care to make a pull request? I didn't have a mac to test on but that was the closest I could find on where it might be located.

ghost commented 5 years ago

I don't really use github, but you or anyone else is welcome to use the code I supplied.

Thank you for making your app publically available and open source.