Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
1.3
Browse files Browse the repository at this point in the history
- AutoUpdate feature is under PitConfig.py
- CheckNewVersion.exe is now useless
  • Loading branch information
Marocco2 committed Mar 13, 2016
1 parent 21e1b54 commit 9ed0b1d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
15 changes: 0 additions & 15 deletions apps/python/PitConfig/CheckNewVersion.ahk

This file was deleted.

Binary file removed apps/python/PitConfig/CheckNewVersion.exe
Binary file not shown.
13 changes: 11 additions & 2 deletions apps/python/PitConfig/PitConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import configparser
#from requests import get
import urllib.request
import json
import shutil
import codecs
import platform
Expand All @@ -35,12 +36,20 @@
from PitConfig_lib import sim_info
from PitConfig_lib import pahk

version = "1.2.1"
version = "1.3"
#r = get('https://api.github.com/repos/Marocco2/PitConfig-Marocco2-version/releases/latest')
#request = r.json()
#lastversion = request['tag_name']
#if version != lastversion:
urllib.request.urlretrieve("https://api.github.com/repos/Marocco2/PitConfig-Marocco2-version/releases/latest", "version.json")
request = urllib.request.urlopen("https://api.github.com/repos/Marocco2/PitConfig-Marocco2-plugin/releases/latest")
tag_name = json.load(request)
lastversion = tag_name['tag_name']
OTAini = configparser.ConfigParser()
OTAini.read('apps\python\PitConfig\PitConfig.ini')
OTA = OTAini['AUTOUPDATE']['Enable']
if version != lastversion and OTA == 1:
urllib.request.urlrequest("https://raw.githubusercontent.com/Marocco2/PitConfig-Marocco2-plugin/"+str(lastversion)+"/apps/python/PitConfig/PitConfig.py", "PitConfig.py")


user32 = ctypes.windll.user32
Resolution = user32.GetSystemMetrics(0)
Expand Down
1 change: 0 additions & 1 deletion apps/python/PitConfig/version.txt

This file was deleted.

0 comments on commit 9ed0b1d

Please sign in to comment.