THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

"""
"""

Script to download the Render Pipeline samples

"""

import os
import sys
sys.path.insert(0, "../")
sys.path.insert(0, "../rpcore/util")

from submodule_downloader import download_submodule

if __name__ == "__main__":

    # Make sure we are in the right directory
    main_dir = os.path.dirname(os.path.realpath(__file__))
    os.chdir(main_dir)

    # Now extract the samples
    download_submodule("tobspr", "RenderPipeline-Samples", ".", ["README.md", "LICENSE"])
Esempio n. 2
0
if __name__ == "__main__":
    import os
    import sys
    from os.path import dirname, realpath, join, isfile

    # Files which are skipped from the downloaded zip
    files_to_ignore = "__init__.py LICENSE README.md config.ini config_module".split(
    )

    current_dir = dirname(realpath(__file__))
    os.chdir(current_dir)

    # Import thirdparty packages
    sys.path.insert(0, "../../rpcore/util")
    sys.path.insert(0, "../../")

    # Download the module
    from submodule_downloader import download_submodule
    download_submodule("tobspr", "P3DModuleBuilder", current_dir,
                       files_to_ignore)

    # Make an init script so we can import the code
    with open("scripts/__init__.py", "w") as handle:
        handle.write("# empty file to be able to import the scripts")

    # Update the gitignore using the suggested version from the module builder
    if isfile(".gitignore"):
        os.remove(".gitignore")
    os.rename("prefab.gitignore", ".gitignore")
Esempio n. 3
0
# pylint: skip-file

if __name__ == "__main__":
    import os
    import sys
    from os.path import dirname, realpath, join, isfile

    # Files which are skipped from the downloaded zip
    files_to_ignore = "__init__.py LICENSE README.md config.ini config_module".split()

    current_dir = dirname(realpath(__file__))
    os.chdir(current_dir)

    # Import thirdparty packages
    sys.path.insert(0, "../" * 4 + "rpcore/util")
    sys.path.insert(0, "../" * 4)

    # Download the module
    from submodule_downloader import download_submodule
    download_submodule("tobspr", "P3DModuleBuilder", current_dir, files_to_ignore)

    # Make an init script so we can import the code
    with open("scripts/__init__.py", "w") as handle:
        handle.write("# empty file to be able to import the scripts")

    # Update the gitignore using the suggested version from the module builder
    if isfile(".gitignore"):
        os.remove(".gitignore")
    os.rename("prefab.gitignore", ".gitignore")
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

"""
"""

Script to download the Render Pipeline samples

"""

import os
import sys
sys.path.insert(0, "../")
sys.path.insert(0, "../rpcore/util")

from submodule_downloader import download_submodule

if __name__ == "__main__":

    # Make sure we are in the right directory
    main_dir = os.path.dirname(os.path.realpath(__file__))
    os.chdir(main_dir)

    # Now extract the samples
    download_submodule("tobspr", "RenderPipeline-Samples", ".",
                       ["README.md", "LICENSE"])