[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Checking For Pygame



How can I find out whether Pygame is currently loaded? I'd like to use a function that requires Pygame to draw something, without loading the module in the program unless that function runs?

Right now the function itself says "import pygame," but I'd like to account for the possibility that pygame will already be loaded when the file it's a part of is incorporated into a bigger project.

Kris