Преглед изворни кода

Merge pull request #210 from Hoto-Cocoa/patch-1

더 적절하게 만들었음
ect (or 2du) пре 8 година
родитељ
комит
6e923f2972
4 измењених фајлова са 6 додато и 1 уклоњено
  1. 2 1
      .gitignore
  2. 4 0
      app.py
  3. 0 0
      image/test.txt
  4. 0 0
      views/test.txt

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
 set.json
 set.json
 /__pycache__
 /__pycache__
 /app_session
 /app_session
-opennamu.db
+opennamu.db
+image

+ 4 - 0
app.py

@@ -102,6 +102,10 @@ try:
     conn.commit()
     conn.commit()
 except:
 except:
     pass
     pass
+
+# Image directory create
+if not os.path.exists('image'):
+    os.makedirs('image')
     
     
 @route('/setup', method=['GET', 'POST'])
 @route('/setup', method=['GET', 'POST'])
 def setup():
 def setup():

+ 0 - 0
image/test.txt


+ 0 - 0
views/test.txt