Skip to content

Incredibly fast crawler designed for OSINT.

Fixes #44

Somdev Sangwan73e953819b68
diff --git a/photon.py b/photon.py
index 194a3c4..0aadea5 100644
--- a/photon.py
+++ b/photon.py
@@ -179,7 +179,7 @@ if args.user_agent:
user_agents = args.user_agent.split(',')
else:
user_agents = []
- with open(os.getcwd() + '/core/user-agents.txt', 'r') as uas:
+ with open(sys.path[0] + '/core/user-agents.txt', 'r') as uas:
for agent in uas:
user_agents.append(agent.strip('\n'))