Skip to content

Commit

Permalink
Simplify initial script documentation, update success message
Browse files Browse the repository at this point in the history
  • Loading branch information
maRT-sk committed Sep 13, 2023
1 parent 1edf92c commit f808f8d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions init_jinjaxcat.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
## Run this script from the directory where you downloaded JinjaXcat from GitHub.

# This PowerShell script automates the setup and launch of the JinjaXcat Python app:
# 1. Sets the directory to the script's location.
# 2. Checks for a specific Python version and installs it if not found.
# 3. Creates a virtual environment if it doesn't exist.
# 4. Checks and installs dependencies from 'requirements.txt'.
# 5. Launches JinjaXcat using Streamlit.
# For more information, visit: github.com/maRT-sk/jinjaxcat#what-does-the-script-do

# Set the current working directory to the directory of the script being run
Set-Location -Path $PSScriptRoot
Expand Down Expand Up @@ -50,7 +44,7 @@ if (-Not(Test-Path '.\venv'))
}

# Activate venv and launch the JinjaXcat application using Streamlit
Write-Host "Activating virtual environment '$env:VIRTUAL_ENV'..."
. .\venv\Scripts\Activate
Write-Host "Activated virtual environment '$env:VIRTUAL_ENV'..."
Write-Host "Launching JinjaXcat application..."
streamlit run 'app\jinjaxcat.py'

0 comments on commit f808f8d

Please sign in to comment.