Skip to content

Commit

Permalink
Fix checking for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Nov 20, 2024
1 parent 5ceaac3 commit 91465d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions audeer/core/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def common_directory(
part of the directory tree that is common to all the directories
Examples:
.. skip: start if(platform.system == "Windows")
.. skip: start if(platform.system() == "Windows")
>>> paths = [
... "/home/user1/tmp/coverage/test",
Expand Down Expand Up @@ -501,7 +501,7 @@ def list_dir_names(
FileNotFoundError: if path does not exists
Examples:
.. skip: start if(platform.system == "Windows")
.. skip: start if(platform.system() == "Windows")
>>> path = audeer.path("path")
>>> _ = mkdir(path, "a", ".b", "c")
Expand Down Expand Up @@ -570,7 +570,7 @@ def list_file_names(
and ``os.dirname(path)`` does not exist
Examples:
.. skip: start if(platform.system == "Windows")
.. skip: start if(platform.system() == "Windows")
>>> dir_path = audeer.mkdir("path")
>>> _ = audeer.touch(dir_path, "file.wav")
Expand Down Expand Up @@ -988,7 +988,7 @@ def script_dir() -> str:
current directory of caller
Examples:
.. skip: next if(platform.system == "Windows")
.. skip: next if(platform.system() == "Windows")
>>> audeer.script_dir() # location of this file
'...audeer/core'
Expand Down

0 comments on commit 91465d8

Please sign in to comment.