-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Windows support for file read and interrupt. * Add install/start scripts for Windows and Linux
- Loading branch information
Showing
9 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ config.yaml | |
# dev files | ||
.idea | ||
venv | ||
.*/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$command = "py" | ||
if (Get-Command python -errorAction SilentlyContinue) { | ||
$command = "python" | ||
} | ||
elseif (Get-Command python3 -errorAction SilentlyContinue) { | ||
$command = "python3" | ||
} | ||
|
||
# Create virtual environment | ||
Invoke-expression "$($command) -m venv .venv" | ||
|
||
# Activate the virtual environment | ||
./.venv/Scripts/activate.ps1 | ||
|
||
# Update pip to latest version | ||
Invoke-expression "$($command) -m pip install --upgrade pip" | ||
|
||
# Install dependencies | ||
pip install wheel | ||
|
||
pip install -r requirements.txt | ||
|
||
# Deactivate virtual env | ||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Create virtual environment | ||
python3 -m venv .venv | ||
|
||
# Activate virtual environment | ||
. ./.venv/bin/activate | ||
|
||
# Update pip3 to latest version | ||
python3 -m pip install --upgrade pip | ||
|
||
# Install dependencies | ||
pip3 install wheel && pip3 install -r requirements.txt | ||
|
||
# Deactivate virtual environment | ||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$command = "py" | ||
if (Get-Command python -errorAction SilentlyContinue) { | ||
$command = "python" | ||
} | ||
elseif (Get-Command python3 -errorAction SilentlyContinue) { | ||
$command = "python3" | ||
} | ||
|
||
# Activate the virtual environment | ||
./.venv/Scripts/activate.ps1 | ||
|
||
# Start the ChiaDog | ||
Invoke-expression "$($command) main.py --config config.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Activate the virtual environment | ||
. ./.venv/bin/activate | ||
|
||
# Start the ChiaDog | ||
python3 main.py --config config.yaml |