Skip to content

Commit

Permalink
make item use isabs and full paths parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Jan 11, 2025
1 parent 2472bd2 commit ccfc0f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Webserver/Programs/File_manager/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def main(args):
continue
else:
raise ImportError(f"You are missing {program} form your path, please install or update them...")

if not os.path.isabs(item):
item = os.path.join(os.getcwd(), item)

if os.path.isdir(item):
try:
Expand Down

0 comments on commit ccfc0f8

Please sign in to comment.