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

Commit

Permalink
Merge pull request #4 from Marocco2/ahk-in-python
Browse files Browse the repository at this point in the history
1.3
  • Loading branch information
Marocco2 committed Mar 13, 2016
2 parents 67f99ba + 9ed0b1d commit 5044b11
Show file tree
Hide file tree
Showing 7 changed files with 371 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.
15 changes: 13 additions & 2 deletions apps/python/PitConfig/PitConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import subprocess
import configparser
#from requests import get
import urllib.request
import json
import shutil
import codecs
import platform
Expand All @@ -32,13 +34,22 @@

import ctypes
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:
subprocess.Popen(["apps\python\PitConfig\CheckNewVersion.exe"])
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
Binary file not shown.
14 changes: 14 additions & 0 deletions apps/python/PitConfig/PitConfig_lib/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Copyright (C) 2013 Gabriel Dube

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Loading

0 comments on commit 5044b11

Please sign in to comment.