relative paths are handled

This commit is contained in:
benton 2021-07-30 18:55:29 -05:00
parent ca95a28b96
commit 868597396c
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
in {
defaultPackage.x86_64-linux = nixpkgs.stdenv.mkDerivation {
pname = "knock";
version = "0.0.1";
version = "0.1.0";
src = self;
nativeBuildInputs = [ nixpkgs.makeWrapper ];
buildInputs = [

2
knock
View file

@ -9,7 +9,7 @@ parser.add_argument('acsm_file', metavar='file', type=str, help='the ACSM file t
args = parser.parse_args()
# these are all Path objects: https://docs.python.org/3/library/pathlib.html
args.acsm_file = Path(args.acsm_file).expanduser()
args.acsm_file = Path(args.acsm_file).expanduser().resolve()
args.drm_file = args.acsm_file.with_suffix('.drm')
args.epub_file = args.acsm_file.with_suffix('.epub')
args.adobe_dir = Path('~/.config/knock').expanduser()