Skip to content

Commit

Permalink
fixing the ProjectPath variable on public functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxrcon committed Jul 9, 2022
1 parent 96c8372 commit ec7cda0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BioNameGenerator/Public/Get-RandomKeyword.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,16 @@ Function Get-RandomKeyword {
"Species" {$Field = "SpecieName" ; $Name= "BacterialSpecies" }
}

$ProjectPath = Join-Path -Path (Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent) -ChildPath 'BioNameGenerator'

$ProjectPath = $ProjectPath = Join-Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath ""
Write-Output $ProjectPath
# Import Modules
Import-Module -Name (Join-Path -Path $ProjectPath `
-ChildPath (Join-Path -Path 'Private' `
-ChildPath 'GetKeywordFromDatabase.psm1'))

$DictionariesPath= "$ProjectPath/Databases/Dictionaries.db"
$DictionariesPath = (Join-Path -Path $ProjectPath `
-ChildPath (Join-Path -Path 'Databases' `
-ChildPath 'Dictionaries.db'))

Get-KeywordFromDatabase -Database $DictionariesPath -TableField $Field -TableName $Name
}
Expand Down

0 comments on commit ec7cda0

Please sign in to comment.