FTP server uses venv
This commit is contained in:
parent
52a1d99dae
commit
004b603d91
@ -1,5 +1,16 @@
|
|||||||
# Is working for video files?
|
# Create virtual environment
|
||||||
python3 -m pyftpdlib
|
if (-not (Test-Path venv)) {
|
||||||
|
virtualenv venv
|
||||||
|
}
|
||||||
|
|
||||||
|
# Activate virtual environment
|
||||||
|
.\venv\Scripts\activate.ps1
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
pip install pyftpdlib
|
||||||
|
|
||||||
|
# Run FTP server
|
||||||
|
python -m pyftpdlib
|
||||||
|
|
||||||
# Not working for streaming video files
|
# Not working for streaming video files
|
||||||
# twistd -n ftp -r .
|
# twistd -n ftp -r .
|
Loading…
Reference in New Issue
Block a user