본문 바로가기

cmod.ify

검색하기
cmod.ify
프로필사진 modifyC

  • 분류 전체보기 (116)
    • Project (8)
    • 클라우드 (5)
      • AWS SAA-C03 (6)
    • AI (2)
    • BASIC (0)
      • TIP (4)
      • PYTHON (8)
      • DATABASE (11)
      • LINUX (18)
      • 네트워크 (2)
      • 코딩테스트 (50)
    • ETC (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • velog
«   2026/04   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Tags
  • DP
  • 크로스핏
  • 납땜
  • Set
  • 뜨개질
  • awssaa
  • node.js
  • Pygame
  • aws
  • C언어
  • db
  • 딕셔너리
  • BFS
  • Claude
  • ddl
  • 영어
  • 그리디
  • 중국어
  • vscode설정
  • VSCode
  • 힙
  • k8s
  • 수학
  • pyinstaller
  • 과외
  • 구현
  • react
  • 코테
  • 성신 맛집
  • 이분탐색
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Pygame (1)

cmod.ify

pyinstaller 사용법

🟢 my_game.py 리소스 경로 설정 def resource_path(relative_path): try: base_path = sys._MEIPASS except Exception: base_path = os.path.abspath(".") return os.path.join(base_path, relative_path) 게임 로직 부분에 작성 pygame.mixer.music.load(resource_path('assets/bgm.mp3')) 🟢 directory |_my_game.py |_assets |_bgm.mp3 |_icon.ico 🟢 터미널 pyinstaller -w -F --add-data="assets;assets" --icon="icon.ico" my_game.py --onefile..

BASIC/TIP 2023. 11. 2. 17:55
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바