#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import subprocess
import sys

if len(sys.argv) <= 1:
    print("Vous devez fournir le nom du script à transférer...")
    sys.exit(1)

ADB = r'C:\Android\android-sdk\platform-tools\adb.exe'
# ADB = '/home/moncompte/android-sdk-linux/platform-tools/adb'

APPLICATION = sys.argv[1]

TARGET = '/sdcard/com.hipipal.qpyplus/scripts3/'


def main():
    # Upload the application.
    subprocess.call([ADB, '-e', 'push', APPLICATION, TARGET + APPLICATION])


if __name__ == '__main__':
    main()