diff --git a/pyproject.toml b/pyproject.toml index da709e8..e72a360 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rda_python_common" -version = "2.0.5" +version = "2.0.6" authors = [ { name="Zaihua Ji", email="zji@ucar.edu" }, ] diff --git a/src/rda_python_common/PgLOG.py b/src/rda_python_common/PgLOG.py index f525789..5e763ae 100644 --- a/src/rda_python_common/PgLOG.py +++ b/src/rda_python_common/PgLOG.py @@ -1393,10 +1393,6 @@ def set_common_pglog(): # check and return TMPSYNC path, and add it if not exists # def get_tmpsync_path(): - - if 'DSSHOME' in PGLOG and PGLOG['DSSHOME'] and not op.exists(PGLOG['TMPSYNC']): - pgsystem("mkdir " + PGLOG['TMPSYNC'], 0, LGWNEX, 4) - pgsystem("chmod 775 " + PGLOG['TMPSYNC'], LOGWRN, 4) return PGLOG['TMPSYNC'] # diff --git a/src/rda_python_common/pg_log.py b/src/rda_python_common/pg_log.py index 2190be5..c119a70 100644 --- a/src/rda_python_common/pg_log.py +++ b/src/rda_python_common/pg_log.py @@ -1118,9 +1118,6 @@ def set_common_pglog(self): # check and return TMPSYNC path, and add it if not exists def get_tmpsync_path(self): - if 'DSSHOME' in self.PGLOG and self.PGLOG['DSSHOME'] and not op.exists(self.PGLOG['TMPSYNC']): - self.pgsystem("mkdir " + self.PGLOG['TMPSYNC'], 0, self.LGWNEX, 4) - self.pgsystem("chmod 775 " + self.PGLOG['TMPSYNC'], self.LOGWRN, 4) return self.PGLOG['TMPSYNC'] # append or prepend locpath to pgpath