Skip to content

Commit b24d342

Browse files
committed
.cfg updated
added path the script is in to the .cfg file name
1 parent 52deae2 commit b24d342

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gpsdGPSListener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import configparser
1616

1717
exitFlag=False
18-
configfilename="./gps.cfg"
18+
configfilename=sys.path[0]+"/gps.cfg"
1919

2020
def setexit(flag):
2121
exitFlag=flag

js8callutilsGPSD.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def createConfigFile(configFileName):
5959
config.write(configfile)
6060
configfile.close()
6161

62-
configfilename="./js8call.cfg"
62+
configfilename=sys.path[0]+"/js8call.cfg"
6363

6464
createConfigFile(configfilename)
6565

0 commit comments

Comments
 (0)