Sha256: d0dc4766d89057428430d5363ea61c4341524186928d3004db23b84129e1f8ba
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
# This is a simple setup script that generates an enviroment file that # is used to setup the ruby enviroment to run the urbanopt-cli tool. # To use just run this script in powershell (e.g. ./setup-env.ps1) # Then you can use this env.ps1 to setup the enviroment. # (e.g. . env.ps1) $BASE_DIR_NAME = $(Get-Location).Path $env:GEM_HOME = "$BASE_DIR_NAME\gems" $env:GEM_PATH = "$BASE_DIR_NAME\gems" $env:PATH += ";$BASE_DIR_NAME\ruby\bin;$BASE_DIR_NAME\gems\bin" $env:RUBYLIB = "$BASE_DIR_NAME\OpenStudio\Ruby" $env:RUBY_DLL_PATH = "$BASE_DIR_NAME\OpenStudio\Ruby" # Remove if exists Remove-Item env:$HOME/.env_uo.ps1 -ErrorAction Ignore '$env:GEM_HOME = "' + $env:GEM_HOME + '"' >> env:$HOME/.env_uo.ps1 '$env:GEM_PATH = "' + $env:GEM_PATH + '"' >> env:$HOME/.env_uo.ps1 '$env:PATH = "' + $env:PATH + '"' >> env:$HOME/.env_uo.ps1 '$env:RUBYLIB = "' + $env:RUBYLIB + '"' >> env:$HOME/.env_uo.ps1 '$env:RUBY_DLL_PATH = "' + $env:RUBY_DLL_PATH + '"' >> env:$HOME/.env_uo.ps1
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
urbanopt-cli-0.4.1 | scripts/setup-env.ps1 |
urbanopt-cli-0.4.0 | scripts/setup-env.ps1 |