# Path: settings.py
# def _get_publish():


import os
import time
import glob
import shutil
import subprocess
import sys
import stat
import zipfile
import json
    import gui.uiconfig as config
from datetime import datetime
from settings import __version__
from cx_Freeze import setup, Executable
def gitLastCommitID():
    p = subprocess.Popen(
        ['git', 'log', '--pretty=oneline', '-1'],
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        shell=True,
    )
    lastCommitId = p.stdout.readlines()[0][:40][-6:]
    return lastCommitId


def getCurrentBranchName():
    p = subprocess.Popen(
        ['git', 'branch'],
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        shell=True,
    )
    branch = p.stdout.readlines()[0][2:-1]
    return branch


def getCurrentTime():
    buildtime = datetime.today().strftime("%y%m%d")
    return buildtime


def getBuildInfo():
    return dict(
        sw_name="AppClient",

# Path: settings.py
# def _get_publish():


# Path: setupwin.py
import os
import time
import glob
import shutil
import subprocess
import sys
import stat
import zipfile
import json
    import gui.uiconfig as config
from datetime import datetime
from settings import __version__
from cx_Freeze import setup, Executable

def gitLastCommitID():
    p = subprocess.Popen(
        ['git', 'log', '--pretty=oneline', '-1'],
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        shell=True,
    )
    lastCommitId = p.stdout.readlines()[0][:40][-6:]
    return lastCommitId


def getCurrentBranchName():
    p = subprocess.Popen(
        ['git', 'branch'],
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        shell=True,
    )
    branch = p.stdout.readlines()[0][2:-1]
    return branch


def getCurrentTime():
    buildtime = datetime.today().strftime("%y%m%d")
    return buildtime


def getBuildInfo():
    return dict(
        sw_name="AppClient",

        sw_version=__version__,