mirror of
https://github.com/dbisu/pico-ducky.git
synced 2025-12-06 02:41:45 +00:00
Saving some memory (#55)
* saving some memory * remove print * better syntax * Update duckyinpython.py
This commit is contained in:
@@ -122,8 +122,7 @@ def runScript(file):
|
|||||||
duckyScriptPath = file
|
duckyScriptPath = file
|
||||||
f = open(duckyScriptPath,"r",encoding='utf-8')
|
f = open(duckyScriptPath,"r",encoding='utf-8')
|
||||||
previousLine = ""
|
previousLine = ""
|
||||||
duckyScript = f.readlines()
|
for line in f:
|
||||||
for line in duckyScript:
|
|
||||||
line = line.rstrip()
|
line = line.rstrip()
|
||||||
if(line[0:6] == "REPEAT"):
|
if(line[0:6] == "REPEAT"):
|
||||||
for i in range(int(line[7:])):
|
for i in range(int(line[7:])):
|
||||||
|
|||||||
Reference in New Issue
Block a user