OSDN Git Service

初期登録
authorshupeluter@hotmail.com <shupeluter@hotmail.com>
Sat, 27 Jan 2018 14:09:25 +0000 (23:09 +0900)
committershupeluter@hotmail.com <shupeluter@hotmail.com>
Sat, 27 Jan 2018 14:09:25 +0000 (23:09 +0900)
TestFileUtil.py [new file with mode: 0644]
sample1.py [new file with mode: 0644]

diff --git a/TestFileUtil.py b/TestFileUtil.py
new file mode 100644 (file)
index 0000000..d7e5fc4
--- /dev/null
@@ -0,0 +1,12 @@
+import unittest
+
+class TestFileUtil (unittest.TestCase):
+    """test class of hoge"""
+
+    def test_1(self):
+        print(1)
+    def test_2(self):
+        print(2)
+
+if __name__ == "__main__":
+    unittest.main()
diff --git a/sample1.py b/sample1.py
new file mode 100644 (file)
index 0000000..e48cca9
--- /dev/null
@@ -0,0 +1,18 @@
+import os
+import yaml
+
+#設定ファイルの読み込み
+with open('config/toolconf.yml' , 'r') as yml:
+    yaml.load(yml)
+    # 設定値の読み込み
+
+
+def find_all_files(directory):
+    for root, dirs, files in os.walk(directory):
+        yield root
+        for file in files:
+            yield  os.path.join(root,file)
+
+
+#for file in find_all_files('.\\'):
+#    print(file)
\ No newline at end of file