From ff862a384c279aaf2f1860a560395ab7ee252382 Mon Sep 17 00:00:00 2001 From: Ayowel Date: Wed, 1 Mar 2023 19:21:06 +0100 Subject: [PATCH] Support SDK installation from command-line --- rapt/android.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/rapt/android.py b/rapt/android.py index 75610519..a977b307 100755 --- a/rapt/android.py +++ b/rapt/android.py @@ -1,18 +1,15 @@ #!/usr/bin/env python2.7 +import os import sys -sys.path.insert(0, 'buildlib') +if 'rapt' in sys.modules: + del sys.modules['rapt'] +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'buildlib')) -import os import argparse -import subprocess -import pygame_sdl2 import rapt.interface as interface import rapt.install_sdk as install_sdk -import rapt.configure as configure -import rapt.build as build -import rapt.plat as plat def main():