Fixing relative path issue

This commit is contained in:
Alex Berry 2020-03-04 20:14:59 +00:00
parent a7d4dcc866
commit 1c4e395b0f
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ And answer with A:
## Usage ## Usage
### All-Cores mode ### All-Cores mode
To run this script with all available cores, open a powershell terminal, cd to this directory and run: To run this script with all available cores, either double-click it or open a powershell terminal, cd to this directory and run:
```powershell ```powershell
.\compile.ps1 .\compile.ps1

View File

@ -17,7 +17,7 @@ else {
$files = (ls *.pwn).Name $files = (ls *.pwn).Name
# Set the working directory to pass in to the background job # Set the working directory to pass in to the background job
$workdir = (pwd) $workdir = (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Define the script block, used by start-job when initiating the background job. This block defines the command that will be run, along with it's parameters. # Define the script block, used by start-job when initiating the background job. This block defines the command that will be run, along with it's parameters.
$Block = { $Block = {