Skip to content

Commit 6c76762

Browse files
authored
Fix migration from old settings (#60)
* Fix migration by creating directory before copying * Bump version
1 parent 581d1ee commit 6c76762

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

jupyterlab_launchpad/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def initialize(self, name: str, settings_dir: str):
1414
old_path = Path(settings_dir) / "jupyterlab-new-launcher" / f"{name}.json"
1515
if not self.path.exists() and old_path.exists():
1616
# migrate database from prior to rename
17+
self.path.parent.mkdir(exist_ok=True, parents=True)
1718
shutil.copy(old_path, self.path)
1819
old_path.unlink()
1920

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-launchpad",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A redesigned JupyterLab launcher",
55
"keywords": [
66
"jupyter",

0 commit comments

Comments
 (0)