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
|
||||
f = open(duckyScriptPath,"r",encoding='utf-8')
|
||||
previousLine = ""
|
||||
duckyScript = f.readlines()
|
||||
for line in duckyScript:
|
||||
for line in f:
|
||||
line = line.rstrip()
|
||||
if(line[0:6] == "REPEAT"):
|
||||
for i in range(int(line[7:])):
|
||||
|
||||
Reference in New Issue
Block a user