Subversion Repositories Kolibri OS

Rev

Rev 9373 | Rev 9376 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9373 Rev 9374
Line 3... Line 3...
3
import shlex
3
import shlex
4
import shutil
4
import shutil
5
import urllib.request
5
import urllib.request
6
import subprocess
6
import subprocess
Line 7... Line 7...
7
 
7
 
8
import build
-
 
9
 
8
path_to_tools_workspace = os.path.dirname(os.path.abspath(__file__))
10
path_to_tools = '..'
9
path_to_tools = os.path.dirname(path_to_tools_workspace)
Line -... Line 10...
-
 
10
sys.path.append(path_to_tools)
-
 
11
 
11
sys.path.append(path_to_tools)
12
from workspace.build import build
12
 
13
 
13
from lib.makeflop import Floppy
14
from lib.makeflop import Floppy
14
from lib.platform import is_win32, path
15
from lib.platform import is_win32, path
Line 48... Line 49...
48
    else:
49
    else:
49
        a = shlex.split(s)
50
        a = shlex.split(s)
50
        return subprocess.Popen(a, bufsize = 0, stdout = qemu_stdout, stderr = qemu_stderr, stdin = subprocess.DEVNULL, start_new_session = True)
51
        return subprocess.Popen(a, bufsize = 0, stdout = qemu_stdout, stderr = qemu_stderr, stdin = subprocess.DEVNULL, start_new_session = True)
Line 51... Line 52...
51
 
52
 
52
if __name__ == "__main__":
53
if __name__ == "__main__":
Line 53... Line 54...
53
    program_files = build.build()
54
    program_files = build()
Line 54... Line 55...
54
 
55
 
55
    os.makedirs("workspace", exist_ok = True)
56
    os.makedirs("workspace", exist_ok = True)