second attempt at using

This commit is contained in:
HackerNCoder 2023-01-19 21:35:53 +01:00
parent ea1684d4f4
commit 3d5b1ad379

View file

@ -23,7 +23,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import sys, subprocess
import os, sys, subprocess
try:
import renpy
@ -33,7 +33,7 @@ except:
def renpy(args):
global in_renpy
command = ['$RENPY_DIR/renpy.sh']
command = [os.path.join(os.environ['$RENPY_DIR'], 'renpy.sh')]
if in_renpy:
# cf. launcher/game/project.rpy
command = [sys.executable, '-EO', sys.argv[0]]