Browse Source

Update Sophia.ps1

Variable "$PSScriptRoot" added to enable execution from another directory
"-FileName Sophia" added to keep the localization function working even if different settings are saved (e.g. Sophia_only_telemetry.ps1)
pull/86/head
Ranger2000 5 years ago
committed by GitHub
parent
commit
b8ddf2a158
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Sophia/Sophia.ps1

4
Sophia/Sophia.ps1

@ -40,9 +40,9 @@
Clear-Host
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name .\Sophia.psd1 -PassThru -Force
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia
# Checking
# Проверка

Loading…
Cancel
Save