Python Forum

Full Version: How to find the pygame example files?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
You should also find your pygame examples in this path then
/Users/piethon/Library/Python/3.7/lib/python/site-packages/pygame/examples
EDIT:
Just caught this
(Sep-03-2019, 02:09 PM)Piethon Wrote: [ -> ]So I've opened VS Code, and made a file called findthing.py, that looked like this:
 import sys 
sys.path 
['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages'] 
This list on the last line is the output for me from running sys.path. Yours will be different. IF you do it tht way just print it
import sys
print(sys.path)
(Sep-03-2019, 05:22 PM)metulburr Wrote: [ -> ]You should also find your pygame examples in this path then
/Users/piethon/Library/Python/3.7/lib/python/site-packages/pygame/examples

No. My python 3.7 folder is not in that path. It is a folder, in my applications. Inside this folder, is no site-packages folder. Just this:

IDLE
InstallCertifications.command
License.rtf
PythonDocumentation.html
PythonLauncher
ReadMe.rtf
Update Shell profile.command

No folder called site-packages.
Sorry. i dont know about the mac structure, so i am only to take shots in the dark. Unless someone jumps in here with knowledge about macs, i would suggest to ask a mac forum.
Pages: 1 2