anipy-cli 3.5.7__py3-none-any.whl → 3.5.9__py3-none-any.whl

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.

Potentially problematic release.


This version of anipy-cli might be problematic. Click here for more details.

anipy_cli/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
1
  __appname__ = "anipy-cli"
2
- __version__ = "3.5.7"
2
+ __version__ = "3.5.9"
anipy_cli/config.py CHANGED
@@ -12,6 +12,8 @@ from anipy_cli import __appname__, __version__
12
12
 
13
13
 
14
14
  class Config:
15
+ _EXPAND_PATHS = True
16
+
15
17
  def __init__(self):
16
18
  self._config_file, self._yaml_conf = Config._read_config()
17
19
 
@@ -410,7 +412,10 @@ class Config:
410
412
  # os.path.expanduser is equivalent to Path().expanduser()
411
413
  # But because pathlib doesn't have expandvars(), we resort
412
414
  # to using the os module inside the Path constructor
413
- return Path(os.path.expandvars(path)).expanduser()
415
+ if self._EXPAND_PATHS:
416
+ return Path(os.path.expandvars(path)).expanduser()
417
+
418
+ return Path(path)
414
419
  except RuntimeError:
415
420
  return fallback
416
421
 
@@ -424,6 +429,8 @@ class Config:
424
429
  def _create_config(self):
425
430
  self._get_config_path().mkdir(exist_ok=True, parents=True)
426
431
  self._config_file.touch()
432
+
433
+ self._EXPAND_PATHS = False
427
434
 
428
435
  dump = ""
429
436
  # generate config based on attrs and default values of config class
@@ -448,7 +455,8 @@ class Config:
448
455
  + yaml.dump({attribute: val}, indent=4, default_flow_style=False)
449
456
  + "\n"
450
457
  )
451
-
458
+
459
+ self._EXPAND_PATHS = True
452
460
  self._config_file.write_text(dump)
453
461
 
454
462
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anipy-cli
3
- Version: 3.5.7
3
+ Version: 3.5.9
4
4
  Summary: Watch and Download anime from the comfort of your Terminal
5
5
  License: GPL-3.0
6
6
  Keywords: anime,cli
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
- Requires-Dist: anipy-api (>=3.5.7,<4.0.0)
17
+ Requires-Dist: anipy-api (>=3.5.9,<4.0.0)
18
18
  Requires-Dist: appdirs (>=1.4.4,<2.0.0)
19
19
  Requires-Dist: inquirerpy (>=0.3.4,<0.4.0)
20
20
  Requires-Dist: pypresence (>=4.3.0,<5.0.0)
@@ -1,4 +1,4 @@
1
- anipy_cli/__init__.py,sha256=paziI8dL-RGoX4iTE-M3KIv9O8XF7WkHsTO6X9Jd4U0,48
1
+ anipy_cli/__init__.py,sha256=3dreDxFAFg1K_OCOBdPxVErQrRu-mCB5jbEa3bN2sVI,48
2
2
  anipy_cli/arg_parser.py,sha256=efUOHrMcKkEELbkxsudSzHC0FF2Z_tSFDTmDBqirVGY,6459
3
3
  anipy_cli/cli.py,sha256=Bk2H15VRF34yKLbGgKVq0A2vdByMJj-JTyx7Ep-JbH0,2238
4
4
  anipy_cli/clis/__init__.py,sha256=Y00uiPWiMvvRImxJMvfLA55BOkMUOrrx5vJUNvquNsY,411
@@ -10,7 +10,7 @@ anipy_cli/clis/history_cli.py,sha256=2ccv6BpQQpUhY4K-KM7lO9qxVLXBrmCY5lec6czipSE
10
10
  anipy_cli/clis/mal_cli.py,sha256=_tSLgDUOa6GOZNyCncSSzaVj088y5GAKkHVRSndLLxk,2258
11
11
  anipy_cli/clis/seasonal_cli.py,sha256=GV2TQNm9UotG1cxfYbrFFgg7Jmy8SFa7w_GlFtPdRVE,616
12
12
  anipy_cli/colors.py,sha256=voXC7z1Fs9tHg4zzNTNMIrt9k-EVgJ3_xEf5KiW2xgo,916
13
- anipy_cli/config.py,sha256=6sjLDd3DscXKLS-KYWmD2KmFucWSfJM_8EkAbf41aoY,17793
13
+ anipy_cli/config.py,sha256=Vc2KlfbZddQw7Jb8GNUAiUSAGjKVgdRo4h8icClW75k,17975
14
14
  anipy_cli/discord.py,sha256=c6mdqnEdblzZBYs3cGP66oDeS4ySm59OfTRP-R-Duls,1160
15
15
  anipy_cli/download_component.py,sha256=5TxlipuaN0tHZkysOmGJB8kd9CxJBXuD_CGnYzU4r-Q,5590
16
16
  anipy_cli/mal_proxy.py,sha256=me2ESB442pYeNEpHY8mqrOEb477UA0uAg2LprKcp8sM,7098
@@ -21,7 +21,7 @@ anipy_cli/menus/menu.py,sha256=QEZfUr_9Epc9ghuZDZGxJxBkmcQK86ZXJaMChzzygko,8416
21
21
  anipy_cli/menus/seasonal_menu.py,sha256=rH_6XRKN_2DvMAo5LHuzoO8aATkHgz66dO3kGATnGLs,8925
22
22
  anipy_cli/prompts.py,sha256=fegNqV7mPxY2bG6OjrB23hjFce9GvOyLisA3eHrJegs,11909
23
23
  anipy_cli/util.py,sha256=Omoq_OtfyxUYvaWyjsinDv50xNVHtDEDVb2cQAGVwu8,6745
24
- anipy_cli-3.5.7.dist-info/METADATA,sha256=ShOL4WL81InFKo9ei4qRH5FFoGObyIha69P188Ynf_0,3481
25
- anipy_cli-3.5.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
26
- anipy_cli-3.5.7.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
27
- anipy_cli-3.5.7.dist-info/RECORD,,
24
+ anipy_cli-3.5.9.dist-info/METADATA,sha256=Qm19pWu5D4ZqqCUs0DC-QGnSBsVTWRHPPhJG_4JUfK8,3481
25
+ anipy_cli-3.5.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
26
+ anipy_cli-3.5.9.dist-info/entry_points.txt,sha256=86iXpcm_ECFndrt0JAI2mqYfXC2Ar7mGi0iOaxCrNP0,51
27
+ anipy_cli-3.5.9.dist-info/RECORD,,