A smol program to check if current running instance is temp fork (cover page)

import uuid
import os

def is_cover_page():
    x = os.environ["REPL_ID"]
    return not (str(uuid.UUID(x, version=4)) == x)

print(is_cover_page()) # False if forked/owner || True if cover page
3 Likes

Shouldn’t is_cover_page return true if it is the cover page, not false?

2 Likes

yeah I thought it did – since that’s what it does in my testing?

my alt is not in the project so it gets a temp fork

my main IS in the project so it’s not a temp fork

1 Like

Yeah but this comment is misleading

2 Likes

oh I am dumb ;-; comments be like

1 Like