Mercurial > touhou
comparison eosd @ 363:cb1460b9b6cf
Enable debug messages when using --debug
| author | Thibaut Girka <thib@sitedethib.com> |
|---|---|
| date | Mon, 09 Jul 2012 22:12:04 +0200 |
| parents | cca5843c2e95 |
| children | 74471afbac37 |
comparison
equal
deleted
inserted
replaced
| 362:3be4c1078095 | 363:cb1460b9b6cf |
|---|---|
| 14 ## | 14 ## |
| 15 | 15 |
| 16 import argparse | 16 import argparse |
| 17 import os | 17 import os |
| 18 import sys | 18 import sys |
| 19 import logging | |
| 19 | 20 |
| 20 import pyximport | 21 import pyximport |
| 21 pyximport.install() | 22 pyximport.install() |
| 22 | 23 |
| 23 from pytouhou.resource.loader import Loader | 24 from pytouhou.resource.loader import Loader |
| 76 else: | 77 else: |
| 77 story = False | 78 story = False |
| 78 continues = 0 | 79 continues = 0 |
| 79 | 80 |
| 80 if debug: | 81 if debug: |
| 82 logging.basicConfig(level=logging.DEBUG) | |
| 81 continues = float('inf') | 83 continues = float('inf') |
| 82 | 84 |
| 83 if replay: | 85 if replay: |
| 84 with open(replay, 'rb') as file: | 86 with open(replay, 'rb') as file: |
| 85 replay = T6RP.read(file) | 87 replay = T6RP.read(file) |
