Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
eue
Commits
2fd418a2
Commit
2fd418a2
authored
May 28, 2021
by
KangMin An
Browse files
Update : 매개변수 파일 저장 시 경로 오류 해결.
parent
4ca38377
Changes
1
Show whitespace changes
Inline
Side-by-side
server/src/data_processing/main.py
View file @
2fd418a2
...
...
@@ -6,7 +6,7 @@
"""
import
datetime
from
os
import
getcwd
from
os
import
getcwd
,
path
,
makedirs
import
sys
import
pymysql
import
numpy
as
np
...
...
@@ -22,9 +22,15 @@ def storeParameters(link, filename, data):
time_dir
=
'/'
+
year
+
'/'
+
year
+
month
+
'/'
+
year
+
month
+
day
file_dir
=
getcwd
()
+
link
+
time_dir
+
filename
file_dir
=
getcwd
()
+
link
+
time_dir
file
=
open
(
file_dir
,
"w"
)
try
:
if
not
path
.
exists
(
file_dir
):
makedirs
(
file_dir
)
except
:
print
(
"Error : Creating Directory - "
,
file_dir
)
file
=
open
(
file_dir
+
filename
,
"w"
)
file
.
write
(
data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment