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