mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-21 05:41:54 +03:00
Fix Open/Save As dialog starting location when file opened with relative path
The directory tree wasn't expanded because it was searching for e.g. LICENSE.txt at the root of the filesystem (or perhaps AS the root?)
This commit is contained in:
parent
4ef6c07826
commit
728b4c53b9
2
paint.py
2
paint.py
@ -1178,7 +1178,7 @@ if args.filename:
|
||||
# else:
|
||||
with open(args.filename, 'r') as my_file:
|
||||
app.image = AnsiArtDocument.from_text(my_file.read())
|
||||
app.filename = args.filename
|
||||
app.filename = os.path.abspath(args.filename)
|
||||
if args.clear_screen:
|
||||
os.system("cls||clear")
|
||||
if args.theme not in ["light", "dark"]:
|
||||
|
Loading…
Reference in New Issue
Block a user