Browse Source

fix for Republic of Korea BUR4 reading code

Johannes Gütschow 3 years ago
parent
commit
353d97716b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      code/UNFCCC_reader/Republic_of_Korea/read_KOR_BUR4_from_xlsx.py

+ 5 - 0
code/UNFCCC_reader/Republic_of_Korea/read_KOR_BUR4_from_xlsx.py

@@ -107,6 +107,11 @@ compression = dict(zlib=True, complevel=9)
 # start data reading
 # ###
 
+# change working directory to script directory for proper folder names
+script_path = os.path.abspath(sys.argv[0])
+script_dir_name = os.path.dirname(script_path)
+os.chdir(script_dir_name)
+
 df_all = None
 
 for sheet in sheets_to_read: