logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

renpy-8.0.3-system-path.patch (548B)


  1. --- a/renpy.py
  2. +++ b/renpy.py
  3. @@ -30,6 +30,7 @@ from __future__ import print_function, absolute_import
  4. import os
  5. import sys
  6. import warnings
  7. +import sysconfig
  8. # Functions to be customized by distributors. ################################
  9. @@ -209,7 +209,7 @@ def path_to_renpy_base():
  10. Returns the absolute path to thew Ren'Py base directory.
  11. """
  12. - renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
  13. + renpy_base = sysconfig.get_path('platlib')
  14. renpy_base = os.path.abspath(renpy_base)
  15. return renpy_base