-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsource.ps1
28 lines (22 loc) · 865 Bytes
/
source.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ***************************************************************
# * This script adds Ignis to the current path on Windows.
# * It assumes that Ignis is either compiled within a
# * a subdirectory named 'build' or within a subdirectory named 'build/Release'.
# ***************************************************************
$env:IGNIS_DIR=$PSScriptRoot
$BUILD_DIR="$env:IGNIS_DIR\build"
$BIN_DIR="$BUILD_DIR\bin\Release"
$LIB_DIR="$BUILD_DIR\lib\Release"
$API_DIR="$BUILD_DIR\api"
If (!(Test-Path $BIN_DIR)) {
$BIN_DIR="$BUILD_DIR\Release\bin"
$LIB_DIR="$BUILD_DIR\Release\lib"
$API_DIR="$BUILD_DIR\Release\api"
If (!(Test-Path $BIN_DIR)) {
$BIN_DIR="$BUILD_DIR\bin"
$LIB_DIR="$BUILD_DIR\lib"
$API_DIR="$BUILD_DIR\api"
}
}
$env:PATH=$env:PATH + ";$BIN_DIR;$LIB_DIR"
$env:PYTHONPATH=$env:PYTHONPATH + ";$API_DIR"