Skip to content

Commit bc81faf

Browse files
committed
fix a wrong path that made crontab unable to call us
1 parent 87eabfc commit bc81faf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

squid2radius.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python2
22

3-
import os
43
import sys
54
import argparse
65
import time
@@ -42,7 +41,7 @@
4241

4342
print "\nSetting up RADIUS server..."
4443
srv = Client(server=args.radius_server, secret=args.radius_secret,
45-
dict=Dictionary(os.path.abspath("dictionary")))
44+
dict=Dictionary(sys.path[0] + "/dictionary"))
4645

4746

4847
print "Sending..."

0 commit comments

Comments
 (0)