Added some forgotten files
This commit is contained in:
parent
4bedaa1ae3
commit
e0861f5c68
17
.project
Normal file
17
.project
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>leyk</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.python.pydev.PyDevBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.python.pydev.pythonNature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
8
.pydevproject
Normal file
8
.pydevproject
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<?eclipse-pydev version="1.0"?><pydev_project>
|
||||||
|
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
|
||||||
|
<path>/${PROJECT_DIR_NAME}</path>
|
||||||
|
</pydev_pathproperty>
|
||||||
|
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
|
||||||
|
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
|
||||||
|
</pydev_project>
|
31
config_example/config.py
Normal file
31
config_example/config.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
|
|
||||||
|
import geo
|
||||||
|
import socket_protocol
|
||||||
|
import state_machine
|
||||||
|
import stringtools
|
||||||
|
import task
|
||||||
|
import tcp_socket
|
||||||
|
|
||||||
|
secret = b'give_a_secret_string_here'
|
||||||
|
server_ip = '127.0.0.1'
|
||||||
|
server_port = 10001
|
||||||
|
|
||||||
|
SHORT_FMT = "%(asctime)s: %(levelname)-7s - %(message)s"
|
||||||
|
""" A short formatter including the most important information"""
|
||||||
|
LONG_FMT = """~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
File "%(pathname)s", line %(lineno)d, in %(funcName)s
|
||||||
|
%(asctime)s: %(levelname)-7s - %(message)s"""
|
||||||
|
""" A long formatter which results in links to the source code inside Eclipse"""
|
||||||
|
|
||||||
|
loggers = (
|
||||||
|
('APP', 'DEBUG'),
|
||||||
|
(geo.logger_name, 'DEBUG'),
|
||||||
|
(socket_protocol.logger_name, 'DEBUG'),
|
||||||
|
(state_machine.logger_name, 'DEBUG'),
|
||||||
|
(stringtools.logger_name, 'DEBUG'),
|
||||||
|
(task.logger_name, 'DEBUG'),
|
||||||
|
(tcp_socket.logger_name, 'DEBUG'),
|
||||||
|
)
|
||||||
|
formatter = LONG_FMT
|
Loading…
x
Reference in New Issue
Block a user