File: clib.py

package info (click to toggle)
fs-uae 3.2.35-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,376 kB
  • sloc: cpp: 257,557; ansic: 121,965; sh: 4,895; makefile: 1,577; python: 446; asm: 275; xml: 10
file content (15 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

import os
import sys
import subprocess

if os.getenv("MSYSTEM") == "MINGW32":
    mingw_dir = "/mingw32"
elif os.getenv("MSYSTEM") == "MINGW64":
    mingw_dir = "/mingw64"

p = subprocess.Popen([
    "sh", "-c",
    "cp {}/bin/{} {}".format(mingw_dir, sys.argv[1], sys.argv[2])])
sys.exit(p.wait())