Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jan 25, 2025
1 parent b861d58 commit 0b09039
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion skore/src/skore/project/_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ def _get_pid_file_path(project: Project) -> Path:
project_identifier = uuid.uuid3(uuid.NAMESPACE_DNS, str(project.path))
else:
project_identifier = uuid.uuid3(uuid.NAMESPACE_DNS, str(project.name))

# Print the content of the skore state directory
state_dir = platformdirs.user_state_path(appname="skore")
if state_dir.exists():
print(f"Content of {state_dir}:")
for path in state_dir.iterdir():
print(f" {path.name}")
else:
print(f"Directory {state_dir} does not exist")
return (
platformdirs.user_state_path(appname="skore")
/ f"skore-server-{project_identifier}.json"
Expand Down Expand Up @@ -114,7 +123,6 @@ def rejoin(cls, project: Project):
pid_file = cls._get_pid_file_path(project)
print(pid_file)
if not pid_file.exists():
print("XXXX rejoin failed")
return

info = json.load(pid_file.open())
Expand Down

0 comments on commit 0b09039

Please sign in to comment.