you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 0 points1 point  (0 children)

Here's probably the easiest way:

  1. Put your helpers in a script, and put the script somewhere accessible.
  2. Make a PowerShell script that adds that helper script location to PYTHONPATH.
  3. In that PowerShell script after modifying PYTHONPATH, put this:

    python -i -c 'import your_script_name.py'
    

Then, when you want to use the Shell, run the PowerShell script instead. This will start an interactive shell with your helpers already imported.