waymore 8.1__tar.gz → 8.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: waymore
3
- Version: 8.1
3
+ Version: 8.3
4
4
  Summary: Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan, VirusTotal & Intelligence X!
5
5
  Home-page: https://github.com/xnl-h4ck3r/waymore
6
6
  Author: xnl-h4ck3r
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
23
23
 
24
- ## About - v8.0
24
+ ## About - v8.3
25
25
 
26
26
  The idea behind **waymore** is to find even more links from the Wayback Machine (plus other sources) than other existing tools.
27
27
 
@@ -1,6 +1,6 @@
1
1
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
2
2
 
3
- ## About - v8.0
3
+ ## About - v8.3
4
4
 
5
5
  The idea behind **waymore** is to find even more links from the Wayback Machine (plus other sources) than other existing tools.
6
6
 
@@ -2,6 +2,7 @@
2
2
  import os
3
3
  import re
4
4
  import shutil
5
+ import sys
5
6
 
6
7
  from setuptools import find_packages, setup
7
8
 
@@ -22,13 +23,9 @@ target_directory = (
22
23
  os.path.join(os.getenv("APPDATA", ""), "waymore")
23
24
  if os.name == "nt"
24
25
  else (
25
- os.path.join(os.path.expanduser("~"), ".config", "waymore")
26
- if os.name == "posix"
27
- else (
28
- os.path.join(os.path.expanduser("~"), "Library", "Application Support", "waymore")
29
- if os.name == "darwin"
30
- else None
31
- )
26
+ os.path.join(os.path.expanduser("~"), "Library", "Application Support", "waymore")
27
+ if sys.platform == "darwin"
28
+ else os.path.join(os.path.expanduser("~"), ".config", "waymore")
32
29
  )
33
30
  )
34
31
 
@@ -0,0 +1 @@
1
+ __version__ = "8.3"
@@ -1306,32 +1306,15 @@ def getConfig():
1306
1306
  useDefaults = False
1307
1307
  try:
1308
1308
  # Get the path of the config file. If -c / --config argument is not passed, then it defaults to config.yml in the same directory as the run file
1309
- waymorePath = (
1310
- Path(os.path.join(os.getenv("APPDATA", ""), "waymore"))
1311
- if os.name == "nt"
1312
- else (
1313
- Path(os.path.join(os.path.expanduser("~"), ".config", "waymore"))
1314
- if os.name == "posix"
1315
- else (
1316
- Path(
1317
- os.path.join(
1318
- os.path.expanduser("~"),
1319
- "Library",
1320
- "Application Support",
1321
- "waymore",
1322
- )
1323
- )
1324
- if os.name == "darwin"
1325
- else None
1326
- )
1327
- )
1328
- )
1329
- waymorePath.absolute
1309
+ if os.name == "nt":
1310
+ waymorePath = Path(os.path.join(os.getenv("APPDATA", ""), "waymore"))
1311
+ elif sys.platform == "darwin":
1312
+ waymorePath = Path(os.path.expanduser("~/Library/Application Support/waymore"))
1313
+ else:
1314
+ waymorePath = Path(os.path.expanduser("~/.config/waymore"))
1315
+
1330
1316
  if args.config is None:
1331
- if waymorePath == "":
1332
- configPath = "config.yml"
1333
- else:
1334
- configPath = Path(waymorePath / "config.yml")
1317
+ configPath = waymorePath / "config.yml"
1335
1318
  else:
1336
1319
  configPath = Path(args.config)
1337
1320
 
@@ -1339,7 +1322,8 @@ def getConfig():
1339
1322
  if not os.path.isfile(configPath):
1340
1323
  try:
1341
1324
  # Make sure the directory exists
1342
- os.makedirs(os.path.dirname(configPath), exist_ok=True)
1325
+ if configPath.parent != Path("."):
1326
+ os.makedirs(configPath.parent, exist_ok=True)
1343
1327
  # Create the default config content using the DEFAULT_* constants
1344
1328
  defaultConfig = f"""FILTER_CODE: {DEFAULT_FILTER_CODE}
1345
1329
  FILTER_MIME: {DEFAULT_FILTER_MIME}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: waymore
3
- Version: 8.1
3
+ Version: 8.3
4
4
  Summary: Find way more from the Wayback Machine, Common Crawl, Alien Vault OTX, URLScan, VirusTotal & Intelligence X!
5
5
  Home-page: https://github.com/xnl-h4ck3r/waymore
6
6
  Author: xnl-h4ck3r
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
 
22
22
  <center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>
23
23
 
24
- ## About - v8.0
24
+ ## About - v8.3
25
25
 
26
26
  The idea behind **waymore** is to find even more links from the Wayback Machine (plus other sources) than other existing tools.
27
27
 
@@ -1 +0,0 @@
1
- __version__ = "8.1"
File without changes
File without changes
File without changes
File without changes
File without changes