novelai link
Browse files- Client/hunt.py +6 -0
Client/hunt.py
CHANGED
|
@@ -279,8 +279,14 @@ try:
|
|
| 279 |
if os.path.exists(stash_path) and not os.path.exists(dest_path):
|
| 280 |
os.link(stash_path, dest_path)
|
| 281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
if not os.listdir(f'images/{group_name}'):
|
| 283 |
os.rmdir(f"images/{group_name}")
|
|
|
|
|
|
|
| 284 |
except KeyboardInterrupt:
|
| 285 |
stop_event.set()
|
| 286 |
raise
|
|
|
|
| 279 |
if os.path.exists(stash_path) and not os.path.exists(dest_path):
|
| 280 |
os.link(stash_path, dest_path)
|
| 281 |
|
| 282 |
+
if os.path.exists(stash_path) and not os.path.exists(f"{stash_path}/!novelai.py") and os.path.exists("Scripts/novelai.py"):
|
| 283 |
+
os.link("Scripts/novelai.py", f"{stash_path}/!novelai.py")
|
| 284 |
+
print(f"Linked novelai.py to {stash_path}/!novelai.py"
|
| 285 |
+
)
|
| 286 |
if not os.listdir(f'images/{group_name}'):
|
| 287 |
os.rmdir(f"images/{group_name}")
|
| 288 |
+
|
| 289 |
+
input()
|
| 290 |
except KeyboardInterrupt:
|
| 291 |
stop_event.set()
|
| 292 |
raise
|