Browse Source

chore: fix out_dir usage in upload-index-json.py

Samuel Attard 6 years ago
parent
commit
504581e308
1 changed files with 2 additions and 4 deletions
  1. 2 4
      script/upload-index-json.py

+ 2 - 4
script/upload-index-json.py

@@ -5,12 +5,10 @@ import sys
 import urllib2
 
 from lib.config import s3_config
-from lib.util import s3put, scoped_cwd, safe_mkdir
+from lib.util import s3put, scoped_cwd, safe_mkdir, get_out_dir
 
-# TODO: Update this entire file to point at the correct file names in the out
-#       directory
 SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
-OUT_DIR     = os.path.join(SOURCE_ROOT, 'out', 'D')
+OUT_DIR     = get_out_dir()
 
 BASE_URL = 'https://electron-metadumper.herokuapp.com/?version='