Browse Source

* update pathes

pull/97/head
lumapu 3 years ago
parent
commit
1a7b2fecc9
  1. 12
      tools/esp8266/helpers/getVersion.py

12
tools/esp8266/helpers/getVersion.py

@ -1,8 +1,8 @@
import os import os
from datetime import date from datetime import date
def readVersion(infile): def readVersion(path, infile):
f = open(infile, "r") f = open(path + infile, "r")
lines = f.readlines() lines = f.readlines()
f.close() f.close()
@ -17,9 +17,9 @@ def readVersion(infile):
version += line[p+13:].rstrip() + "." version += line[p+13:].rstrip() + "."
version = version[:-1] + "_esp8266.bin" version = version[:-1] + "_esp8266.bin"
src = "../.pio/build/d1_mini/firmware.bin" src = path + ".pio/build/d1_mini/firmware.bin"
dst = "../.pio/build/d1_mini/out/" + version dst = path + ".pio/build/d1_mini/out/" + version
os.mkdir("../.pio/build/d1_mini/out/") os.mkdir(path + ".pio/build/d1_mini/out/")
os.rename(src, dst) os.rename(src, dst)
readVersion("../defines.h") readVersion("tools/esp8266/", "defines.h")

Loading…
Cancel
Save