Skip to content
Snippets Groups Projects
Commit d4ed5b48 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

working on: 0.0.32 Release

parent 06bbde24
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ class ApplicationServiceConfig: ...@@ -17,7 +17,7 @@ class ApplicationServiceConfig:
cvsfile_name: str, cvsfile_name: str,
url_src: str): url_src: str):
self.limit_nr = 20 self.limit_nr = 20
self.data_path = ".." + os.sep + ".." + os.sep + "data" self.data_path = ".." + os.sep + "data"
self.slug = slug, self.slug = slug,
self.category = category self.category = category
self.cvsfile_subpath = cvsfile_subpath self.cvsfile_subpath = cvsfile_subpath
...@@ -25,7 +25,8 @@ class ApplicationServiceConfig: ...@@ -25,7 +25,8 @@ class ApplicationServiceConfig:
self.tablename = tablename self.tablename = tablename
self.cvsfile_name = cvsfile_name self.cvsfile_name = cvsfile_name
self.url_src = url_src self.url_src = url_src
self.cvsfile_path = self.data_path + os.sep + self.cvsfile_subpath + os.sep + self.cvsfile_name self.download_path = self.data_path + os.sep + self.cvsfile_name
self.cvsfile_path = ".." + os.sep + self.data_path + os.sep + self.cvsfile_subpath + os.sep + self.cvsfile_name
self.msg_job = "download FILE: "+self.cvsfile_name+" from "+self.url_src self.msg_job = "download FILE: "+self.cvsfile_name+" from "+self.url_src
self.msg_ok = "downloaded FILE: " + self.cvsfile_path + " from " + self.url_src self.msg_ok = "downloaded FILE: " + self.cvsfile_path + " from " + self.url_src
self.msg_error = "Error while downloading: " + self.cvsfile_path + " from " + self.url_src self.msg_error = "Error while downloading: " + self.cvsfile_path + " from " + self.url_src
......
...@@ -47,7 +47,7 @@ class ApplicationServiceDownload: ...@@ -47,7 +47,7 @@ class ApplicationServiceDownload:
os.chdir(self.cfg.data_path) os.chdir(self.cfg.data_path)
my_cmds = [ my_cmds = [
'wget ' + self.cfg.url_src, 'wget ' + self.cfg.url_src,
'mv ' + self.cfg.cvsfile_name + ' ' + self.cfg.cvsfile_path, 'mv ' + self.cfg.download_path + ' ' + self.cfg.cvsfile_path,
] ]
# subprocess.Popen(my_cmd, shell=True) # subprocess.Popen(my_cmd, shell=True)
for my_cmd in my_cmds: for my_cmd in my_cmds:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment