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

from __future__ import unicode_literals
import pickle


def get_copy_right(text=None):
    return text if text else '(C) Nypro & Jabil Shanghai TE Support'


def dump_pickle(data, pk_file, silent=True):
    try:
        with open(pk_file, 'wb') as f:
            pickle.dump(data, f)

    except:
        if not silent:
            raise


def load_pickle(pk_file, silent=True):
    try:
        with open(pk_file, 'rb') as f:
            return pickle.load(f)

    except:
        if silent:
            return {}

        raise

@@ -80,16 +80,32 @@
 iterals%0A
+import platform%0A
 import p
@@ -214,16 +214,202 @@
 port'%0A%0A%0A
+def get_platform_info():%0A    return '%7B%7D (%7B%7D)%5Cn%7B%7D'.format(platform.platform(),%0A                                platform.machine(),%0A                                platform.processor())%0A%0A%0A
 def dump

add platform item