Skip to content

Commit 84ef56d

Browse files
committed
Rectified logical error in if statement; improved code to run both on linux and windows system efficiently
1 parent 89d1417 commit 84ef56d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tutorials/tutorial_waypoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def call_mss():
6868
mss_pyui.main()
6969

7070

71-
def automate_waypoints(obj=None):
71+
def automate_waypoints():
7272
"""
7373
This is the main automating script of the MSS waypoints tutorial which will be recorded and saved
7474
to a file having dateframe nomenclature with a .mp4 extension(codec).
@@ -144,7 +144,7 @@ def automate_waypoints(obj=None):
144144

145145
# Changing map to Global
146146
try:
147-
if platform == 'linux' or 'linux2' or 'darwin':
147+
if platform == 'linux' or platform == 'linux2' or platform == 'darwin':
148148
x, y = pag.locateCenterOnScreen('pictures/europe(cyl).PNG')
149149
pag.click(x, y, interval=2)
150150
elif platform == 'win32':

0 commit comments

Comments
 (0)