diff --git a/extras/BLOCKS/standalone_sdk/create_standalone_sdk.py b/extras/BLOCKS/standalone_sdk/create_standalone_sdk.py index 7b0b13240e..8100c7b17b 100644 --- a/extras/BLOCKS/standalone_sdk/create_standalone_sdk.py +++ b/extras/BLOCKS/standalone_sdk/create_standalone_sdk.py @@ -1,3 +1,6 @@ +# Run this script in an empty directory to create the contents of the +# standalone SDK repository. + import os import shutil @@ -9,28 +12,16 @@ with open(os.path.join(script_dir, "..", "juce_modules.txt"), "r") as f: for line in f: juce_modules.append(line.strip()) -# Make sure we are starting afresh. -out_directory = "BLOCKS-SDK" -try: - shutil.rmtree(out_directory) -except OSError as e: - if e.errno != 2: - # An errno of 2 indicates that the directory does not exist, which is - # fine! - raise e - # Copy the required modules into the SDK dir. -sdk_dir = os.path.join(out_directory, "SDK") -shutil.copytree(os.path.join(script_dir, "SDK"), sdk_dir) +sdk_dir = "SDK" +shutil.copytree(os.path.join(script_dir, sdk_dir), sdk_dir) for module_name in juce_modules: shutil.copytree(os.path.join(script_dir, "..", "..", "..", "modules", module_name), os.path.join(sdk_dir, module_name)) # Copy the examples. -shutil.copytree(os.path.join(script_dir, "examples"), - os.path.join(out_directory, "examples")) +shutil.copytree(os.path.join(script_dir, "examples"), "examples") # Copy the README. -shutil.copyfile(os.path.join(script_dir, "README.md"), - os.path.join(out_directory, "README.md")) +shutil.copyfile(os.path.join(script_dir, "README.md"), "README.md") diff --git a/modules/juce_core/network/juce_WebInputStream.h b/modules/juce_core/network/juce_WebInputStream.h index b24f6d7a5e..7d4587f7a0 100644 --- a/modules/juce_core/network/juce_WebInputStream.h +++ b/modules/juce_core/network/juce_WebInputStream.h @@ -91,10 +91,9 @@ class JUCE_API WebInputStream : public InputStream Returns a reference to itself so that several methods can be chained. - @param numRedirectsToFollow specifies the number of redirects that will - be followed before returning a response - (ignored for Android which follows up to 5 - redirects) + @param numRedirects specifies the number of redirects that will be followed + before returning a response (ignored for Android which + follows up to 5 redirects) */ WebInputStream& withNumRedirectsToFollow (int numRedirects);