ra
This commit is contained in:
parent
4a294edd5a
commit
0a19076af3
@ -27,7 +27,7 @@ print("os.getcwd() = ", os.getcwd())
|
||||
|
||||
if __name__ == '__main__':
|
||||
from bin import main
|
||||
|
||||
os.chdir(sys.path[0]) # TODO 没做完.ing
|
||||
print(hi)
|
||||
game = main.Game()
|
||||
game.start()
|
@ -7,7 +7,6 @@ import multiprocessing as mp
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
sys.path.append('./bin/libs/')
|
||||
sys.path.append('./')
|
||||
import pyglet
|
||||
|
@ -250,7 +250,8 @@ def config(file_name, stack=None): # // TODO 加上.config的读取+解析
|
||||
return xml_load
|
||||
elif (f_type == 'config') or (f_type == 'conf'):
|
||||
cp = configparser.ConfigParser() # cp -> config parser
|
||||
cf = cp.read(file_name) # cf -> config file
|
||||
cp.read(file_name) # config parser -> reader
|
||||
|
||||
|
||||
|
||||
def get_At(name, in_xml, need_type=str):
|
||||
|
@ -13,7 +13,7 @@
|
||||
'visible': 'true',
|
||||
// bool
|
||||
'style': 'None',
|
||||
'fps': 30,
|
||||
'fps': 120,
|
||||
'views': [
|
||||
'space',
|
||||
'map',
|
||||
|
@ -12,5 +12,4 @@ for c in configs.sections():
|
||||
|
||||
conf = configparser.ConfigParser()
|
||||
conf.read('test_config.config')
|
||||
print(type(conf))
|
||||
print(conf[:])
|
||||
print(type(conf))
|
Loading…
Reference in New Issue
Block a user