second attempt at using
This commit is contained in:
parent
ea1684d4f4
commit
3d5b1ad379
|
@ -23,7 +23,7 @@
|
||||||
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
import sys, subprocess
|
import os, sys, subprocess
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import renpy
|
import renpy
|
||||||
|
@ -33,7 +33,7 @@ except:
|
||||||
|
|
||||||
def renpy(args):
|
def renpy(args):
|
||||||
global in_renpy
|
global in_renpy
|
||||||
command = ['$RENPY_DIR/renpy.sh']
|
command = [os.path.join(os.environ['$RENPY_DIR'], 'renpy.sh')]
|
||||||
if in_renpy:
|
if in_renpy:
|
||||||
# cf. launcher/game/project.rpy
|
# cf. launcher/game/project.rpy
|
||||||
command = [sys.executable, '-EO', sys.argv[0]]
|
command = [sys.executable, '-EO', sys.argv[0]]
|
||||||
|
|
Loading…
Reference in a new issue