diff --git a/BrainArt.bat b/BrainArt.bat new file mode 100644 index 0000000..ad319b7 --- /dev/null +++ b/BrainArt.bat @@ -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 \ No newline at end of file diff --git a/macOS_setup.sh b/macOS_setup.sh new file mode 100644 index 0000000..2df538c --- /dev/null +++ b/macOS_setup.sh @@ -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." diff --git a/src/run.py b/src/run.py index 6ba1af1..c65ba81 100644 --- a/src/run.py +++ b/src/run.py @@ -9,4 +9,9 @@ # Description: # This file contains the methods to run the BrainArt program as an application. -from browser_ui import BrowserUI \ No newline at end of file +from browser_ui import BrowserUI +import os + +if __name__ == "__main__": + os.system('cls') + webapp = BrowserUI(title="Brain Generated Artwork Prototype") \ No newline at end of file diff --git a/windows_setup.bat b/windows_setup.bat new file mode 100644 index 0000000..28ec0b4 --- /dev/null +++ b/windows_setup.bat @@ -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 \ No newline at end of file