From 21e1b5409c1c303bb3138abd9f7f2ec66dac26b8 Mon Sep 17 00:00:00 2001 From: Marocco2 Date: Sat, 12 Mar 2016 16:38:16 +0100 Subject: [PATCH] something --- apps/python/PitConfig/PitConfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/python/PitConfig/PitConfig.py b/apps/python/PitConfig/PitConfig.py index 996ebe8..d11cc44 100644 --- a/apps/python/PitConfig/PitConfig.py +++ b/apps/python/PitConfig/PitConfig.py @@ -20,6 +20,7 @@ import subprocess import configparser #from requests import get +import urllib.request import shutil import codecs import platform @@ -32,13 +33,14 @@ import ctypes from PitConfig_lib import sim_info +from PitConfig_lib import pahk version = "1.2.1" #r = get('https://api.github.com/repos/Marocco2/PitConfig-Marocco2-version/releases/latest') #request = r.json() #lastversion = request['tag_name'] #if version != lastversion: -subprocess.Popen(["apps\python\PitConfig\CheckNewVersion.exe"]) +urllib.request.urlretrieve("https://api.github.com/repos/Marocco2/PitConfig-Marocco2-version/releases/latest", "version.json") user32 = ctypes.windll.user32 Resolution = user32.GetSystemMetrics(0)