From: Oleg Broytman Date: Wed, 20 Aug 2025 18:05:21 +0000 (+0300) Subject: Feat(mv): Make paths absolute (and normalize) X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7cfd2f08b5c781811249d9b6ba275001037b23e2;p=xsetbg.git Feat(mv): Make paths absolute (and normalize) --- diff --git a/mv.py b/mv.py index ce75590..d727f28 100755 --- a/mv.py +++ b/mv.py @@ -31,6 +31,9 @@ if not os.path.exists(from_filename): if os.path.exists(to_filename): sys.exit("Filename %s already exists, cannot rename" % to_filename) +from_filename = os.path.abspath(from_filename) +to_filename = os.path.abspath(to_filename) + rows = list(xsetbg_db.selectBy(full_name=from_filename)) if not rows: sys.exit("No rows by filename %s" % from_filename)