nai-aclab 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -219,11 +219,11 @@ NovelAI V4+의 멀티 캐릭터 프롬프트는 캐릭터를 쉼표로 합치지
219
219
 
220
220
  앱 설정과 생성 이미지는 내 컴퓨터에 저장됩니다.
221
221
 
222
- 기본적으로 운영체제의 사진/그림 폴더 아래에 폴더를 만들고, 그 안에 설정과 생성 이미지를 함께 저장합니다.
222
+ 기본적으로 폴더 아래에 `nai_aclab` 폴더를 만들고, 그 안에 설정과 생성 이미지를 함께 저장합니다.
223
223
 
224
- - Windows: `Pictures\NAI Artist Combination Lab`
225
- - macOS: `~/Pictures/NAI Artist Combination Lab`
226
- - Linux: `XDG_PICTURES_DIR/NAI Artist Combination Lab`
224
+ - Windows: `C:\Users\사용자이름\nai_aclab`
225
+ - macOS: `~/nai_aclab`
226
+ - Linux: `~/nai_aclab`
227
227
 
228
228
  폴더 안의 구조는 아래처럼 나뉩니다.
229
229
 
package/app.py CHANGED
@@ -25,25 +25,11 @@ except Exception:
25
25
  APP_DIR = Path(__file__).resolve().parent
26
26
 
27
27
 
28
- def default_pictures_dir() -> Path:
29
- if os.name != "nt":
30
- user_dirs = Path.home() / ".config" / "user-dirs.dirs"
31
- try:
32
- for line in user_dirs.read_text(encoding="utf-8").splitlines():
33
- if line.startswith("XDG_PICTURES_DIR="):
34
- value = line.split("=", 1)[1].strip().strip('"')
35
- value = value.replace("$HOME", str(Path.home()))
36
- return Path(value).expanduser()
37
- except OSError:
38
- pass
39
- return Path.home() / "Pictures"
40
-
41
-
42
28
  def default_user_dir() -> Path:
43
29
  configured = os.environ.get("NAI_ARTIST_LAB_USER_DIR", "").strip()
44
30
  if configured:
45
31
  return Path(configured).expanduser()
46
- return default_pictures_dir() / "NAI Artist Combination Lab"
32
+ return Path.home() / "nai_aclab"
47
33
 
48
34
 
49
35
  USER_DIR = default_user_dir()
@@ -14,18 +14,7 @@ function userDataDir() {
14
14
  return process.env.NAI_ARTIST_LAB_USER_DIR;
15
15
  }
16
16
 
17
- if (process.platform === "win32") {
18
- return path.join(os.homedir(), "Pictures", "NAI Artist Combination Lab");
19
- }
20
-
21
- if (process.platform === "darwin") {
22
- return path.join(os.homedir(), "Pictures", "NAI Artist Combination Lab");
23
- }
24
-
25
- return path.join(
26
- process.env.XDG_PICTURES_DIR || path.join(os.homedir(), "Pictures"),
27
- "NAI Artist Combination Lab"
28
- );
17
+ return path.join(os.homedir(), "nai_aclab");
29
18
  }
30
19
 
31
20
  function printHelp() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nai-aclab",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Local web UI for experimenting with NovelAI artist tag weight combinations.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",