소스 검색

Added some forgotten files

mod_update
Dirk Alders 4 년 전
부모
커밋
e0861f5c68
3개의 변경된 파일56개의 추가작업 그리고 0개의 파일을 삭제
  1. 17
    0
      .project
  2. 8
    0
      .pydevproject
  3. 31
    0
      config_example/config.py

+ 17
- 0
.project 파일 보기

@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>leyk</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.python.pydev.PyDevBuilder</name>
10
+			<arguments>
11
+			</arguments>
12
+		</buildCommand>
13
+	</buildSpec>
14
+	<natures>
15
+		<nature>org.python.pydev.pythonNature</nature>
16
+	</natures>
17
+</projectDescription>

+ 8
- 0
.pydevproject 파일 보기

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<?eclipse-pydev version="1.0"?><pydev_project>
3
+    <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
4
+        <path>/${PROJECT_DIR_NAME}</path>
5
+    </pydev_pathproperty>
6
+    <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
7
+    <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
8
+</pydev_project>

+ 31
- 0
config_example/config.py 파일 보기

@@ -0,0 +1,31 @@
1
+#!/usr/bin/env python
2
+# -*- coding: UTF-8 -*-
3
+
4
+import geo
5
+import socket_protocol
6
+import state_machine
7
+import stringtools
8
+import task
9
+import tcp_socket
10
+
11
+secret = b'give_a_secret_string_here'
12
+server_ip = '127.0.0.1'
13
+server_port = 10001
14
+
15
+SHORT_FMT = "%(asctime)s: %(levelname)-7s - %(message)s"
16
+""" A short formatter including the most important information"""
17
+LONG_FMT = """~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
+File "%(pathname)s", line %(lineno)d, in %(funcName)s
19
+%(asctime)s: %(levelname)-7s - %(message)s"""
20
+""" A long formatter which results in links to the source code inside Eclipse"""
21
+
22
+loggers = (
23
+    ('APP', 'DEBUG'),
24
+    (geo.logger_name, 'DEBUG'),
25
+    (socket_protocol.logger_name, 'DEBUG'),
26
+    (state_machine.logger_name, 'DEBUG'),
27
+    (stringtools.logger_name, 'DEBUG'),
28
+    (task.logger_name, 'DEBUG'),
29
+    (tcp_socket.logger_name, 'DEBUG'),
30
+)
31
+formatter = LONG_FMT

Loading…
취소
저장