Improve session viewer. There were some off-by-one errors.
[fpdb-dooglus.git] / pyfpdb / TestDetectInstalledSites.py
blob94bc76fbc299d25265fd6ff786897e429a2a9c07
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 from DetectInstalledSites import *
5 print "Following sites detected:"
6 print "------------------------------------"
8 #single site example
9 foo = DetectInstalledSites("PokerStars")
10 if foo.detected:
11 print foo.sitename
12 print foo.hhpath
13 print foo.heroname
15 print "------------------------------------"
17 #all sites example
18 foo = DetectInstalledSites()
19 for sitename in foo.sitestatusdict:
20 if foo.sitestatusdict[sitename]['detected']:
21 print "sitename:"+ sitename
22 print "hhpath:"+foo.sitestatusdict[sitename]['hhpath']
23 print "heroname:"+foo.sitestatusdict[sitename]['heroname']
24 print "------------------------------------"
27 #print foo.supportedSites
28 #print foo.supportedPlatforms
29 #print foo.userPlatform