alpha
Login
or
Join now
ewancroft.uk
/
bluesky-avatar-updater
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add `venv` check
author
Ewan Croft
date
1 year ago
(Feb 22, 2025, 7:19 PM UTC)
commit
4c91880d
4c91880d0664002dadb8d584104da91698fefc22
parent
7a31defc
7a31defc0e955a063738e52e4180bb4ba8a775c1
+7
1 changed file
Expand all
Collapse all
Unified
Split
src
main.py
+7
src/main.py
Reviewed
···
7
7
from dotenv import load_dotenv
8
8
from atproto import Client, models
9
9
from atproto.exceptions import BadRequestError
10
10
+
import sys
11
11
+
12
12
+
if not hasattr(sys, 'real_prefix') and not (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix):
13
13
+
print("Error: This script must be run inside a virtual environment.")
14
14
+
sys.exit(1)
15
15
+
else:
16
16
+
print("Virtual environment detected.")
10
17
11
18
# Define the paths
12
19
BASE_DIR = os.path.abspath(os.path.dirname(__file__))