linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / photon / destdir.patch
blobe6cf997f2e7c495375afb565755795eecf156a81
1 diff --git a/photon.py.old b/photon.py
2 index 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'))
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))