RE: How to get a place's longitude and latitude?

2020-02-24 Thread legaulph
Try something like import requests import json url = "https://nominatim.openstreetmap.org/search.php?q=city+country&format=json&l imit=1" result = requests.get(url) dataobj = result.json() x = dataobj[0]['lat'] + "," + dataobj[0]['lon'] print(x) -Original Message- From: Python-list On

RE: ghostscripts in python with watchdog

2020-02-14 Thread legaulph
I see it does not like spaces in the file name -Original Message- From: legau...@gmail.com Sent: Friday, February 14, 2020 7:55 AM To: 'Bheesham Persaud' ; python-list@python.org Subject: RE: ghostscripts in python with watchdog I'm not sure what happens, when I'm testing and suddenly I

RE: ghostscripts in python with watchdog

2020-02-14 Thread legaulph
I'm not sure what happens, when I'm testing and suddenly I will start getting this error. Error: /undefinedfilename in (1) Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostr

ghostscripts in python with watchdog

2020-02-12 Thread legaulph
I'm trying to use ghostscripts with python watchdog. I want to duplicate the last page of a pdf to another directory using the same name as the source pdf + page number. So watchdog will monitor the directory for the pdf and ghostscript will copy the last page to another directory. I have this,