nsthorat commited on
Commit
3c856fd
1 Parent(s): 9b42fa0
Files changed (2) hide show
  1. dist/README.md +0 -2
  2. docker_start.py +3 -3
dist/README.md DELETED
@@ -1,2 +0,0 @@
1
- This directory is used for locally built whl files.
2
- We write a README.md to ensure an empty folder is uploaded when there is no whl.
 
 
 
docker_start.py CHANGED
@@ -74,9 +74,9 @@ def main() -> None:
74
 
75
  spaces_data_dir = os.path.join(snapshot_dir, 'data')
76
  # Copy the config file.
77
- shutil.copy(
78
- os.path.join(spaces_data_dir, PROJECT_CONFIG_FILENAME),
79
- os.path.join(data_path(), PROJECT_CONFIG_FILENAME))
80
 
81
  # Delete cache files from persistent storage.
82
  cache_dir = get_lilac_cache_dir(data_path())
 
74
 
75
  spaces_data_dir = os.path.join(snapshot_dir, 'data')
76
  # Copy the config file.
77
+ project_config_file = os.path.join(spaces_data_dir, PROJECT_CONFIG_FILENAME)
78
+ if os.path.exists(project_config_file):
79
+ shutil.copy(project_config_file, os.path.join(data_path(), PROJECT_CONFIG_FILENAME))
80
 
81
  # Delete cache files from persistent storage.
82
  cache_dir = get_lilac_cache_dir(data_path())