[med-svn] [Git][python-team/packages/python-easydev][upstream] 2 commits: New upstream version 0.13.2
Alexandre Detiste (@detiste-guest)
gitlab at salsa.debian.org
Sun Apr 28 22:02:44 BST 2024
Alexandre Detiste pushed to branch upstream at Debian Python Team / packages / python-easydev
Commits:
e0cf7294 by Alexandre Detiste at 2024-04-28T22:59:18+02:00
New upstream version 0.13.2
- - - - -
21d4a7f7 by Alexandre Detiste at 2024-04-28T23:01:00+02:00
New upstream version 0.13.2+dfsg1
- - - - -
1 changed file:
- + easydev/appdirs.py
Changes:
=====================================
easydev/appdirs.py
=====================================
@@ -0,0 +1,46 @@
+import os
+import sys
+
+from platformdirs import (
+ site_config_dir,
+ site_data_dir,
+ user_cache_dir,
+ user_config_dir,
+ user_data_dir,
+ user_log_dir,
+)
+
+
+class AppDirs(object):
+ """Convenience wrapper for getting application dirs."""
+
+ def __init__(self, appname, appauthor=None, version=None, roaming=False, multipath=False):
+ self.appname = appname
+ self.appauthor = appauthor
+ self.version = version
+ self.roaming = roaming
+ self.multipath = multipath
+
+ @property
+ def user_data_dir(self):
+ return user_data_dir(self.appname, self.appauthor, version=self.version, roaming=self.roaming)
+
+ @property
+ def site_data_dir(self):
+ return site_data_dir(self.appname, self.appauthor, version=self.version, multipath=self.multipath)
+
+ @property
+ def user_config_dir(self):
+ return user_config_dir(self.appname, self.appauthor, version=self.version, roaming=self.roaming)
+
+ @property
+ def site_config_dir(self):
+ return site_config_dir(self.appname, self.appauthor, version=self.version, multipath=self.multipath)
+
+ @property
+ def user_cache_dir(self):
+ return user_cache_dir(self.appname, self.appauthor, version=self.version)
+
+ @property
+ def user_log_dir(self):
+ return user_log_dir(self.appname, self.appauthor, version=self.version)
View it on GitLab: https://salsa.debian.org/python-team/packages/python-easydev/-/compare/394316d7466f9be9a3a13fda7a0c287cdb4966a8...21d4a7f715af706b3825249bf53db4c59c60cac6
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-easydev/-/compare/394316d7466f9be9a3a13fda7a0c287cdb4966a8...21d4a7f715af706b3825249bf53db4c59c60cac6
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240428/b268ee2a/attachment-0001.htm>
More information about the debian-med-commit
mailing list