mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-07 20:17:45 +00:00
fix: revert 2 commits (#1239)
* revert commit:c51a3008f897416a7416f92d1286cbbf6a2291ae. PR 1179 * Revert "fix: change runner prompts (#1223)" This reverts commit db2ebc27d70663d6aa85e0b05d9b81f5f6443c17. * fix ruff check error * fix: change switch place for fix_seed_and_data_split
This commit is contained in:
@@ -200,7 +200,7 @@ class FBWorkspace(Workspace):
|
||||
if workspace_data_file_path.exists():
|
||||
workspace_data_file_path.unlink()
|
||||
if platform.system() in ("Linux", "Darwin"):
|
||||
os.symlink(data_file_path, workspace_data_file_path)
|
||||
workspace_data_file_path.symlink_to(data_file_path)
|
||||
if platform.system() == "Windows":
|
||||
os.link(data_file_path, workspace_data_file_path)
|
||||
|
||||
@@ -336,7 +336,7 @@ class FBWorkspace(Workspace):
|
||||
if mode == symlink_mode: # Symlink
|
||||
dest_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
link_target = zf.read(info).decode()
|
||||
os.symlink(link_target, dest_path)
|
||||
dest_path.symlink_to(link_target)
|
||||
elif info.is_dir():
|
||||
dest_path.mkdir(parents=True, exist_ok=True)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user