Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 20 lines 776 B view raw
1diff --git a/photon.py.old b/photon.py 2index 92498e4..f7e2c3d 100644 3--- a/photon.py.old 4+++ b/photon.py 5@@ -185,7 +185,7 @@ if args.user_agent: 6 user_agents = args.user_agent.split(',') 7 else: 8 user_agents = [] 9- with open(os.getcwd() + '/core/user-agents.txt', 'r') as uas: 10+ with open('DESTDIR/core/user-agents.txt', 'r') as uas: 11 for agent in uas: 12 user_agents.append(agent.strip('\n')) 13 14@@ -534,4 +534,4 @@ if args.export: 15 if not colors: # if colors are disabled 16 print ('%s Results saved in %s directory' % (good, output_dir)) 17 else: 18- print ('%s Results saved in \033[;1m%s\033[0m directory' % (good, output_dir)) 19\ No newline at end of file 20+ print ('%s Results saved in \033[;1m%s\033[0m directory' % (good, output_dir))