Skip to content

Support for setting options via environment variables

Latest
Compare
Choose a tag to compare
@abhishek-anand abhishek-anand released this 16 Sep 11:20
  • To persist your choice of not saving sessions for some extended period of time, set an environment variable PYSESSION_SAVE_OFF to True.
    export PYSESSION_SAVE_OFF=True
  • To always save your sessions to local file, set an environment variable PYSESSION_SAVE_LOCALLY to True.
    export PYSESSION_SAVE_LOCALLY=True
  • The file is saved with a name session.py You can change this by setting the environment variable PYSESSION_FILENAME to your desired filename.
    export PYSESSION_FILENAME=some_file_name.py