Skip to content

Commit

Permalink
Rectified logical error in if statement; improved code to run both on…
Browse files Browse the repository at this point in the history
… linux and windows system efficiently
  • Loading branch information
risehr committed Jul 5, 2021
1 parent 89d1417 commit 84ef56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/tutorial_waypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def call_mss():
mss_pyui.main()


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

# Changing map to Global
try:
if platform == 'linux' or 'linux2' or 'darwin':
if platform == 'linux' or platform == 'linux2' or platform == 'darwin':
x, y = pag.locateCenterOnScreen('pictures/europe(cyl).PNG')
pag.click(x, y, interval=2)
elif platform == 'win32':
Expand Down

0 comments on commit 84ef56d

Please sign in to comment.