Skip to content

Fix filename parameter not working correctly with absolute paths#16

Open
Signum21 wants to merge 1 commit intoGreenwolf:masterfrom
Signum21:master
Open

Fix filename parameter not working correctly with absolute paths#16
Signum21 wants to merge 1 commit intoGreenwolf:masterfrom
Signum21:master

Conversation

@Signum21
Copy link

Replaced os.path.join(args.filename, args.filename + ".<extension>") with os.path.join(args.filename, os.path.basename(args.filename.rstrip("/\\")) + ".<extension>") to make the -f parameter work with absolute paths.

And 3 other small fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant