Skip to content

Commit

Permalink
added some runable scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoFerrisi committed May 22, 2023
1 parent cfe0945 commit 1087be9
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
26 changes: 26 additions & 0 deletions BrainArt.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@echo off

echo changing directory to %BRAINART%

CD %BRAINART%

echo Currently in: %cd%
echo ------------------------------------------


call .esp\Scripts\activate.bat

pause

echo.

echo Union Neurotech 2023. (www.unionneurotech.com)
echo Brain Art Program.
echo For Inquires please contact unionneurotech@gmail.com
echo.
pause

echo Starting BrainArt. This may take a moment to load.
echo.

python src\run.py
20 changes: 20 additions & 0 deletions macOS_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# To use this script, follow these steps:
# 1. Open a text editor (such as TextEdit or Sublime Text) on your macOS system.
# 2. Copy and paste the above script into the text editor.
# 3. Save the file with a ".sh" extension, such as "setup.sh".
# 4. Open Terminal on your macOS system.
# 5. Navigate to the directory where you saved the script using the cd command. For example, if you saved it on your desktop, you can use cd ~/Desktop.
# 6. Make the script executable by running the command: chmod +x setup.sh.
# 7. Run the script by entering its name: ./setup.sh.
# 8. The script will execute and display the output in the Terminal, showing the value of the BRAINART environment variable set to the path of the script directory.

# Get the path of the directory containing the setup script
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Set the BRAINART environment variable to the script directory
export BRAINART="$script_dir"

# Display the value of BRAINART
echo "BRAINART environment variable set to: $BRAINART. You can close this now."
7 changes: 6 additions & 1 deletion src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@
# Description:
# This file contains the methods to run the BrainArt program as an application.

from browser_ui import BrowserUI
from browser_ui import BrowserUI
import os

if __name__ == "__main__":
os.system('cls')
webapp = BrowserUI(title="Brain Generated Artwork Prototype")
9 changes: 9 additions & 0 deletions windows_setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@echo off
echo Currently in %~dp0
echo.
echo This script will require administrator permissions to set an environment variable so that the main script can run.
echo.
pause
SETX BRAINART %~dp0
echo Environment Variable "BRAINART" set to %~dp0
pause

0 comments on commit 1087be9

Please sign in to comment.