-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change : Format provider is changed to black.
- Loading branch information
1 parent
ea22b37
commit c9bbfb0
Showing
20 changed files
with
1,108 additions
and
820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import os | ||
|
||
import deepdanbooru as dd | ||
|
||
|
||
def create_project(project_path): | ||
""" | ||
Create new project with default parameters. | ||
""" | ||
dd.io.try_create_directory(project_path) | ||
project_context_path = os.path.join(project_path, 'project.json') | ||
dd.io.serialize_as_json( | ||
dd.project.DEFAULT_PROJECT_CONTEXT, project_context_path) | ||
|
||
print(f'New project was successfully created. ({project_path})') | ||
import os | ||
|
||
import deepdanbooru as dd | ||
|
||
|
||
def create_project(project_path): | ||
""" | ||
Create new project with default parameters. | ||
""" | ||
dd.io.try_create_directory(project_path) | ||
project_context_path = os.path.join(project_path, "project.json") | ||
dd.io.serialize_as_json(dd.project.DEFAULT_PROJECT_CONTEXT, project_context_path) | ||
|
||
print(f"New project was successfully created. ({project_path})") |
Oops, something went wrong.