Skip to content

Commit

Permalink
Support Symbolic Link
Browse files Browse the repository at this point in the history
  • Loading branch information
7-Leaf committed Feb 11, 2025
1 parent b8236c4 commit a9d8618
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion recycle/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def mkdir(path):

def get_current_path():
try:
return os.path.abspath(os.getcwd())
# return os.path.abspath(os.getcwd())
# Support Symbolic Link
return os.path.abspath(os.environ["PWD"])
except Exception:
return None

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

setup(
name="py-recycle",
version="1.3.4",
version="1.3.6",
description=("Recycle for linux"),
long_description=open("README.rst").read(),
author="twfb",
author_email="[email protected]",
maintainer="twfb",
maintainer_email="[email protected]",
license="BSD License",
license="GPLv3",
packages=find_packages(),
platforms=["all"],
include_package_data=True,
Expand Down

0 comments on commit a9d8618

Please sign in to comment.