relative paths are handled
This commit is contained in:
parent
ca95a28b96
commit
868597396c
2 changed files with 2 additions and 2 deletions
|
@ -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
2
knock
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue