trumank / scratch-api

An API to interact with the Scratch website
MIT License
94 stars 32 forks source link

Let caller of UserSession.load choose what to use as session file #18

Closed towerofnix closed 5 years ago

towerofnix commented 6 years ago

Currently, the session file is always determined according to the constant SESSION_FILE (which is equivalent to .scratchSession). It would be nice if you could pass to UserSession.load what file to use in place of .scratchSession.

trumank commented 5 years ago

Loading from a file was intended for convenient testing via CLI. If more complicated session management is needed, it should be implemented externally by the user.