import platform as _platformif _platform.system()=='Windows':from.import _winmouse as _os_mouseelif _platform.system()=='Linux':from.import _nixmouse as _os_mouseelif _platform.system()=='Darwin':from.import _darwinmouse as _os_mouseelse:raiseOSError("Unsupported platform '{}'".format(_platform.system()))
🚩 Python Modül Dizinlerini Ayarlama
Python modüllerinin dizinleri PYTHONPATH ile belirlenir edilir.
# Tek başına çalışmak isterseif__name__=="__main__":import osimport sys sys.path.append(os.getcwd())