diff --git a/asl_cards/parse.py b/asl_cards/parse.py index 2ecde3d..5f13f76 100644 --- a/asl_cards/parse.py +++ b/asl_cards/parse.py @@ -89,6 +89,9 @@ class PdfParser: def parse( self , target , max_pages=-1 , image_res=None ) : """Extract the cards from a PDF file.""" + # FUDGE! The Qt directory browser always returns paths using forward slashes, which confuses Ghostscript :-/ + if sys.platform == "win32" and target.startswith("//") : + target = target.replace( "/" , "\\" ) # locate the files we're going to parse if os.path.isfile( target ) : fnames = [ target ]