Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   Fix for GameTime+ on Everest Poker (http://archives1.twoplustwo.com/showthread.php?t=408572)

Pomtidom 05-21-2007 04:14 PM

Fix for GameTime+ on Everest Poker
 
Hi,

If anyone here plays on Everest Poker and uses GameTime+ they probably noticed that you have to move the labels around each time you open a new table, because Everest always places you at the front seat no matter what seat you have.

I've created a script to workaround this annoying problem. It's written in Python which you'll need to run the script. Python can be found here: http://www.python.org/download/

What this script does is monitor the HH's Everest Poker produces, converts them to make sure you are always at seat 0 in the handhistory and writes them in a different directory (output_dir) which you can import into PT.

There are 3 settings in this script:
- everest_dir: this is the directory where Everest Poker places the handhistories, this is usually correct by default.
- output_dir: the directory the script outputs the parsed handhistories, make sure this directory exists.
- number_of_players: whether you play headsup (2), shorthanded (6) or fullring (10).

Save the code of the script to a .py file (e.g. ConvertEverest.py) and doubleclick to run it. It will not output anything on screen but will parse the handhistories every 60 seconds. Just let it run. Make sure PT imports the output_dir and not the everest_dir.

Here's the script:
<font class="small">Code:</font><hr /><pre>import os, time, re, xml.dom.minidom, xml.parsers.expat

############################### SETTINGS ###############################

everest_dir = "C:\Program Files\Everest Poker\history\\"
output_dir = "C:\Program Files\Everest Poker\history\processed\\"
number_of_players = 6

############################# / SETTINGS ###############################


def ParseFile( filename ):
in_file = open( everest_dir + filename, 'rb' )
out_file = open( output_dir + filename, 'wb' )
lines = in_file.readlines()
handtext = [ ]
for line in lines:
handtext.append( line )
if '&lt;SESSION' in line:
xmlLine = xml.dom.minidom.parseString( line )
nickname = xmlLine.childNodes[0].getAttribute( 'screenName' )
elif '&lt;HAND' in line:
position = { }
elif '&lt;SEAT' in line:
xmlLine = xml.dom.minidom.parseString( line )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
name = xmlLine.childNodes[0].getAttribute( 'name' )
position[ name ] = pos
elif '&lt;DEALER' in line:
offset = int( position[ nickname ] )
elif '&lt;/HAND&gt;' in line:
for l in handtext:
try:
xmlLine = xml.dom.minidom.parseString( l )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
pos = int(pos)
pos = (pos - offset) % number_of_players
out_file.write( re.sub( 'position="[0-9]+"', 'position="' + str(pos) + '"', l ) )
except (ValueError, xml.parsers.expat.ExpatError):
if '&lt;WIN' in l:
pos = int( l[ 17 ] )
pos = (pos - offset) % number_of_players
l = l[:17] + str(pos) + l[18:]
out_file.write( l )
handtext = [ ]


handled = { }
while True:
files = os.listdir( everest_dir )
for file in files:
if re.match( "^[0-9]+\.txt", file ):
mtime = os.path.getmtime( everest_dir + file )
if file not in handled:
handled[ file ] = 0
if mtime &gt; handled[ file ]:
ParseFile( file )
handled[ file ] = mtime
time.sleep( 60 )</pre><hr />

I have tested this briefly and it seems to work. Any questions/comments/suggestions are welcome.

HoschH 05-25-2007 11:42 AM

Re: Fix for GameTime+ on Everest Poker
 
Nice one!
Thanks.

I've tested it and it works for me.

Zaghomat 06-03-2007 09:26 AM

Re: Fix for GameTime+ on Everest Poker
 
Hi, I tired the sof, but I got this error:


C:\Program Files\Everest Poker&gt;everest.py
Traceback (most recent call last):
File "C:\Program Files\Everest Poker\everest.py", line 57, in &lt;module&gt;
ParseFile( file )
File "C:\Program Files\Everest Poker\everest.py", line 14, in ParseFile
out_file = open( output_dir + filename, 'wb' )
IOError: [Errno 2] No such file or directory: 'C:\\Program Files\\Everest Poker\
\history\\processed\\110.txt'

Zaghomat 06-03-2007 10:00 AM

Re: Fix for GameTime+ on Everest Poker
 
Ok got it, I have to create the 'C:\Program Files\Everest Poker\history\processed\ folder.

Sergioxxx 06-09-2007 02:53 PM

Re: Fix for GameTime+ on Everest Poker
 
Thank you very much for creating the script and to share it. It is of great help

Triggerle 06-10-2007 03:19 PM

Re: Fix for GameTime+ on Everest Poker
 
Shouldn't this be trivially easy to implement directly into gametime+? I don't know any C++ or else I would try.

Pomtidom 06-10-2007 05:10 PM

Re: Fix for GameTime+ on Everest Poker
 
Yes, shouldn't be too hard. Problem is the code on sourceforge is appearently not up to date. Also, I'm lazy.

burt777 06-25-2007 06:45 PM

Re: Fix for GameTime+ on Everest Poker
 
A very effective improvement of my lie's quality!! Thanks a lot for this!

2 assumptions:
1) it's light weight, not a big task for the computer
2) the sleep 60 in the end means the script is executed every 60 seconds

I'm not a very good programmer, but if i'm correct, i could make the script run every 15 seconds, so the delay between handhistory and gametime stats is reduced a bit, right?

Anyway, great job!!

Pomtidom 07-02-2007 08:01 PM

Re: Fix for GameTime+ on Everest Poker
 
[ QUOTE ]
2 assumptions:
1) it's light weight, not a big task for the computer
2) the sleep 60 in the end means the script is executed every 60 seconds

I'm not a very good programmer, but if i'm correct, i could make the script run every 15 seconds, so the delay between handhistory and gametime stats is reduced a bit, right?

[/ QUOTE ]
This is all true.

I doubt it would make a difference changing the 60 to 15 because you can only let PokerTracker import once every 60 seconds.

SpaceyFCB 07-08-2007 09:10 AM

Re: Fix for GameTime+ on Everest Poker
 
Does this thing affect your position stats in Pokertracker or does the button also moves according your seat?

Greets. K.

Pomtidom 07-08-2007 08:46 PM

Re: Fix for GameTime+ on Everest Poker
 
Button also moves. You won't be able to tell a difference in any way when you use this script.

SpaceyFCB 07-09-2007 12:08 PM

Re: Fix for GameTime+ on Everest Poker
 
OK, thank you, I'll try it out

Greets. K.

burt777 07-09-2007 10:15 PM

Re: Fix for GameTime+ on Everest Poker
 
Does something similar or another work-around exist for Full Tilt? I looked but couldn't find. I could try to hack this script, but i'm not sure if i'm up to it...! Since i'm a parasite, i thought i'd ask first. (-:

Mat 07-22-2007 05:21 PM

Re: Fix for GameTime+ on Everest Poker
 
I have a little problem with the script, it seems like I'm not seat 0 but seat 1 because the stats are shifted of one seat. Could anyone help me to edit the script please ?

Pomtidom 08-07-2007 08:44 PM

Re: Fix for GameTime+ on Everest Poker
 
Reposition the labels once, it should be correct from then on.

Cusem 08-28-2007 08:50 AM

Re: Fix for GameTime+ on Everest Poker
 
Nice work!

However I multitable with 4 6-max tables and 4 10-max tables. So I will get HH of SH and FR tables. Can I just use the script or won't that work?

I don't know anything about Python, however I do know some AutoItv3 and was thinking of coding something like this myself. However I don't know how the Everest HH's work and since I know nothing about Python, I can't make much out of your code.

If I have the following HH as an example and my Screenname is "Cusem", how should the HH be adjusted. That all the data of seat 5 (my seat) will become in seat 0? And all the data of seat 6 will become in seat 1? What should the parsedfile look like?

[ QUOTE ]

&lt;SESSION time="1188253255" tableName="Malabo-0" id="276.35.613" type="ring" money="$" screenName="Cusem" game="hold-em" gametype="no-limit"/&gt;
&lt;HAND time="1188253259" id="1997228239" index="0" blinds="$.15/$.25" stakes="$.25/$.25"&gt;
&lt;SEAT position="0" name="Empousa" balance="2546"/&gt;
&lt;SEAT position="1" name="tjappie81" balance="2385"/&gt;
&lt;SEAT position="2" name="@kerstin@" balance="4055"/&gt;
&lt;SEAT position="3" name="mathieu07" balance="700"/&gt;
&lt;SEAT position="4" name="cornev" balance="1795"/&gt;
&lt;SEAT position="5" name="Cusem" balance="2500"/&gt;
&lt;SEAT position="6" name="fred3463" balance="5170"/&gt;
&lt;SEAT position="7" name="Horstus" balance="2700"/&gt;
&lt;SEAT position="8" name="k4l4sh" balance="3010"/&gt;
&lt;SEAT position="9" name="Dr-Hugo" balance="1072"/&gt;
&lt;DEALER position="0"/&gt;
&lt;BLIND position="1" amount="15" penalty="0"/&gt;
&lt;BLIND position="2" amount="25" penalty="0"/&gt;
&lt;XBLIND position="5"/&gt;
&lt;HOLE position="1"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="2"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="3"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="4"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="6"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="7"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="8"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="9"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="0"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="1"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="2"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="3"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="4"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="6"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="7"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="8"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="9"&gt;--&lt;/HOLE&gt;
&lt;HOLE position="0"&gt;--&lt;/HOLE&gt;
&lt;FOLD position="3"/&gt;
&lt;FOLD position="4"/&gt;
&lt;FOLD position="6"/&gt;
&lt;FOLD position="7"/&gt;
&lt;BET position="8" amount="25"/&gt;
&lt;FOLD position="9"/&gt;
&lt;FOLD position="0"/&gt;
&lt;BET position="1" amount="10"/&gt;
&lt;BET position="2" amount="0"/&gt;
&lt;SWEEP rake="0"&gt;75&lt;/SWEEP&gt;
&lt;COMMUNITY&gt;4c, Js, 4d&lt;/COMMUNITY&gt;
&lt;BET position="1" amount="0"/&gt;
&lt;BET position="2" amount="0"/&gt;
&lt;BET position="8" amount="25"/&gt;
&lt;BET position="1" amount="25"/&gt;
&lt;FOLD position="2"/&gt;
&lt;SWEEP rake="5"&gt;120&lt;/SWEEP&gt;
&lt;COMMUNITY&gt;10d&lt;/COMMUNITY&gt;
&lt;BET position="1" amount="100"/&gt;
&lt;FOLD position="8"/&gt;
&lt;PUSH position="1" amount="100"/&gt;
&lt;SWEEP rake="5"&gt;120&lt;/SWEEP&gt;
&lt;XSHOW position="1"/&gt;
&lt;WIN position="1" amount="120" pot="0", potAmount="120"/&gt;
&lt;/HAND&gt;


[/ QUOTE ]

Cusem 08-28-2007 12:34 PM

Re: Fix for GameTime+ on Everest Poker
 
Figured it out. I'm not a programmer, so the code isn't very tidy and probably can be much more efficient, but it works.

It is written in AutoITv3


;testvariables
$parsechk = 1
$maxplayers = 10
Opt("TrayIcondebug",1)

#include &lt;file.au3&gt;

$hh_everestpath = "C:\Program Files (x86)\Everest Poker\history\"
$hh_outputpath = "C:\Program Files (x86)\Everest Poker\historyparsed\"
$hh_backuppath = "C:\Program Files (x86)\Everest Poker\historyparsed\BackupHH"
$parsetimeout = 2500
$search = FileFindFirstFile($hh_everestpath &amp; "*.*")
$hh_file = FileFindNextFile($search)
$lines = _FileCountLines($hh_everestpath&amp;$hh_file)

;===&gt;&gt;&gt; Get ScreenName
$screenname = ""
$hh_in = FileOpen($hh_everestpath&amp;$hh_file,0)
For $a = 1 to $lines
$line = FileReadline($hh_in)
$result = StringInStr($line, "screenName", 1, 1)
If $result &lt;&gt; 0 Then
$screenname = StringMid($line, $result + 12, 45)
$stoppos = StringInStr($screenname, Chr(34), 0, 1)
$screenname = StringTrimRight($screenname, 44 - $stoppos)
EndIf
Next
FileClose($hh_in)

;===&gt;&gt;&gt; Get Seat Position
$offset = 0
$hh_in = FileOpen($hh_everestpath&amp;$hh_file,0)
For $a = 1 to $lines
$line = FileReadline($hh_in)
$result = StringInStr($line, $screenname &amp; Chr(34) &amp; " balance", 1, 1)
If $result &lt;&gt; 0 Then
$offset = Int(StringMid($line, 19, 1))
EndIf
Next
FileClose($hh_in)

;===&gt;&gt;&gt; FileParsing
$hh_in = FileOpen($hh_everestpath&amp;$hh_file,0)
$hh_out = FileOpen($hh_outputpath&amp;$hh_file,1)
For $a = 1 to $lines
$line = FileReadLine($hh_in)
$replace = StringInStr($line, "position=", 1, 1)
If $replace &lt;&gt; 0 Then
$seat = Int(StringMid($line, $replace + 10, 1))
$seat = $seat - $offset
If $seat &lt; 0 Then $seat = $seat + $maxplayers
$line = StringReplace($line, $replace + 10, $seat, 1, 1)
EndIf
FileWriteLine($hh_out, $line)
Next
FileClose($hh_in)
FileClose($hh_out)
FileMove($hh_everestpath&amp;$hh_file, $hh_backuppath, 1)

HighSteaks 09-06-2007 12:04 PM

Re: Fix for GameTime+ on Everest Poker
 
[ QUOTE ]
Hi,

If anyone here plays on Everest Poker and uses GameTime+ they probably noticed that you have to move the labels around each time you open a new table, because Everest always places you at the front seat no matter what seat you have.

I've created a script to workaround this annoying problem. It's written in Python which you'll need to run the script. Python can be found here: http://www.python.org/download/

What this script does is monitor the HH's Everest Poker produces, converts them to make sure you are always at seat 0 in the handhistory and writes them in a different directory (output_dir) which you can import into PT.

There are 3 settings in this script:
- everest_dir: this is the directory where Everest Poker places the handhistories, this is usually correct by default.
- output_dir: the directory the script outputs the parsed handhistories, make sure this directory exists.
- number_of_players: whether you play headsup (2), shorthanded (6) or fullring (10).

Save the code of the script to a .py file (e.g. ConvertEverest.py) and doubleclick to run it. It will not output anything on screen but will parse the handhistories every 60 seconds. Just let it run. Make sure PT imports the output_dir and not the everest_dir.

Here's the script:
<font class="small">Code:</font><hr /><pre>import os, time, re, xml.dom.minidom, xml.parsers.expat

############################### SETTINGS ###############################

everest_dir = "C:\Program Files\Everest Poker\history\\"
output_dir = "C:\Program Files\Everest Poker\history\processed\\"
number_of_players = 6

############################# / SETTINGS ###############################


def ParseFile( filename ):
in_file = open( everest_dir + filename, 'rb' )
out_file = open( output_dir + filename, 'wb' )
lines = in_file.readlines()
handtext = [ ]
for line in lines:
handtext.append( line )
if '&lt;SESSION' in line:
xmlLine = xml.dom.minidom.parseString( line )
nickname = xmlLine.childNodes[0].getAttribute( 'screenName' )
elif '&lt;HAND' in line:
position = { }
elif '&lt;SEAT' in line:
xmlLine = xml.dom.minidom.parseString( line )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
name = xmlLine.childNodes[0].getAttribute( 'name' )
position[ name ] = pos
elif '&lt;DEALER' in line:
offset = int( position[ nickname ] )
elif '&lt;/HAND&gt;' in line:
for l in handtext:
try:
xmlLine = xml.dom.minidom.parseString( l )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
pos = int(pos)
pos = (pos - offset) % number_of_players
out_file.write( re.sub( 'position="[0-9]+"', 'position="' + str(pos) + '"', l ) )
except (ValueError, xml.parsers.expat.ExpatError):
if '&lt;WIN' in l:
pos = int( l[ 17 ] )
pos = (pos - offset) % number_of_players
l = l[:17] + str(pos) + l[18:]
out_file.write( l )
handtext = [ ]


handled = { }
while True:
files = os.listdir( everest_dir )
for file in files:
if re.match( "^[0-9]+\.txt", file ):
mtime = os.path.getmtime( everest_dir + file )
if file not in handled:
handled[ file ] = 0
if mtime &gt; handled[ file ]:
ParseFile( file )
handled[ file ] = mtime
time.sleep( 60 )</pre><hr />

I have tested this briefly and it seems to work. Any questions/comments/suggestions are welcome.

[/ QUOTE ]

Can someone who has this working please give me some help getting it going, it's driving me crazy positioning these every time and I can't get it to go. I installed Python- 2.5.1.msi and then put the script above in a text, I then put my Everest path in, made a "processed" folder and set it to 10 players and then saved it with py on the end . Double clicked the icon and a DOS window opened for a fraction of a second and went away- nothing doing at all from there, please help before I go nuts [img]/images/graemlins/confused.gif[/img] Pretty funky little site other than that [img]/images/graemlins/grin.gif[/img]

HighSteaks 09-06-2007 07:33 PM

Re: Fix for GameTime+ on Everest Poker
 
Ok, can someone that knows Python let me know if you put the scripts in a text file then? My script looked like continuous text when I pasted it in, not set out like the post. Should I get an icon in the system tray like AHK if it takes off? Anything on this would help, it's brutal setting GT+ up every time.

Pomtidom 09-06-2007 11:55 PM

Re: Fix for GameTime+ on Everest Poker
 
[ QUOTE ]
Ok, can someone that knows Python let me know if you put the scripts in a text file then? My script looked like continuous text when I pasted it in, not set out like the post. Should I get an icon in the system tray like AHK if it takes off? Anything on this would help, it's brutal setting GT+ up every time.

[/ QUOTE ]
Run the script in a command prompt (Start &gt; Run &gt; cmd), you should get an error then. There's no icon in system tray, but the black window should remain open.

Your problem is probably that the linebreaks didn't go through like you indicated. Make sure if you paste the script in a text editor it looks exactly like it does here. Using an other browser/editor might do the trick.

HighSteaks 09-07-2007 12:40 AM

Re: Fix for GameTime+ on Everest Poker
 
I can't get it to paste other than continuous lines, can you put a link to a Python or text file that can be downloaded or something?

HighSteaks 09-07-2007 03:14 AM

Re: Fix for GameTime+ on Everest Poker
 
Ship it, got it working- thanks dude.

SpaceyFCB 09-10-2007 07:02 PM

Re: Fix for GameTime+ on Everest Poker
 
I installed Vista (32 bit) and it doesn't work anymore.
Black dos-screen opens and remains open, but the HH's aren't written to the folder I want to.
I installed Pyton 2.5.1

Greets. K.

Brit_Abroad 09-15-2007 06:32 AM

Re: Fix for GameTime+ on Everest Poker
 
works fine for me on Vista

olator 10-09-2007 10:21 AM

Re: Fix for GameTime+ on Everest Poker
 
Hi everybody. I add some "feature" to this script.
Now you don't have to choice the number of player yourself. The script check in a list of name table to know which type of table it is (short handed, full ring, head's up).
If the name isn't in the list so it's a multi table tournament (always full ring now)
Please tell me if there is problem or if i forgot a table name.

<font class="small">Code:</font><hr /><pre>
import os, time, re, xml.dom.minidom, xml.parsers.expat

############################### SETTINGS ###############################

everest_dir = "C:\Program Files\Everest Poker\history\\"
output_dir = "C:\Program Files\Everest Poker\history\processed\\"
number_of_players = 10
FR_table_name = ['Aracar', 'Ankara', 'Bishorn', 'Bronze', 'Bangkok', 'Beijing', 'Berlin', 'Brussels', 'Chichon', 'Colima', 'Dom', 'Dhaka', 'Ecrins', 'Elbert', 'Fuji', 'Galeras', 'Gold', 'Hanoi', 'Honiara', 'Jungfrau', 'K2', 'Kabul', 'Kigali', 'Liskamm', 'London', 'Monch', 'Maipo', 'Malabo', 'Manila', 'Moroni', 'Moscow', 'Osaka', 'Putana', 'Purace', 'Pelee', 'Paris', 'Robson', 'Rabat', 'Riga', 'Rome', 'Shasta', 'Sangay', 'Sarajevo', 'Seoul', 'Taal', 'Tashkent', 'Tokyo', 'Usluga', 'Ubinas', 'Vienna']
SH_table_name = ['Alphubel', 'Ararat','Apia', 'Batura', 'Bamako', 'Belgrade', 'Bogota', 'Castor', 'Changtok', 'Cook', 'Chowusha', 'Castries', 'Droites', 'Dili', 'Dodoma', 'Doha', 'Eiger', 'Etna', 'Janak', 'Hungchhi', 'Harare', 'Kenya', 'Kotte', 'Lhotse', 'Lusaka', 'Makalu', 'Muscat', 'Nordend', 'Nassau', 'Olympus', 'Palikir', 'Risum', 'Riyadh', 'Rosseau', 'Sanaa', 'Suva', 'Taipei', 'Thimphu', 'Toronto', 'Tutupaca']
HU_table_name = ['Algiers', 'Athens', 'Beirut', 'Belmopan', 'Bern', 'Cameroon', 'Dublin', 'Elbrus', 'Essen', 'Funafuti', 'Hekla', 'Koror', 'Lisbon', 'Luanda', 'Mawenzi', 'Manaslu', 'Manama', 'Oslo', 'Quito', 'Savoia', 'Sinai', 'Tyree', 'Tsogaka', 'Tarawa', 'Tbilisi', 'Tirana', 'Victoria']

############################# / SETTINGS ###############################


def ParseFile( filename ):
in_file = open( everest_dir + filename, 'rb' )
out_file = open( output_dir + filename, 'wb' )
lines = in_file.readlines()
handtext = [ ]
for line in lines:
handtext.append( line )
if '&lt;SESSION' in line:
xmlLine = xml.dom.minidom.parseString( line )
nickname = xmlLine.childNodes[0].getAttribute( 'screenName' )
tablename = xmlLine.childNodes[0].getAttribute( 'tableName' )
tablename = tablename.split('-')[0]
if tablename in FR_table_name:
number_of_players = 10
### "full ring table" ###
elif tablename in SH_table_name:
number_of_players = 6
### "short handed table" ###
elif tablename in HU_table_name:
number_of_players = 2
### "heads up table" ###
else:
number_of_players = 10
### "tournament HH" ###
elif '&lt;HAND' in line:
position = { }
elif '&lt;SEAT' in line:
xmlLine = xml.dom.minidom.parseString( line )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
name = xmlLine.childNodes[0].getAttribute( 'name' )
position[ name ] = pos
elif '&lt;DEALER' in line:
offset = int( position[ nickname ] )
elif '&lt;/HAND&gt;' in line:
for l in handtext:
try:
xmlLine = xml.dom.minidom.parseString( l )
pos = xmlLine.childNodes[0].getAttribute( 'position' )
pos = int(pos)
pos = (pos - offset) % number_of_players
out_file.write( re.sub( 'position="[0-9]+"', 'position="' + str(pos) + '"', l ) )
except (ValueError, xml.parsers.expat.ExpatError):
if '&lt;WIN' in l:
pos = int( l[ 17 ] )
pos = (pos - offset) % number_of_players
l = l[:17] + str(pos) + l[18:]
out_file.write( l )
handtext = [ ]


handled = { }
while True:
files = os.listdir( everest_dir )
for file in files:
if re.match( "^[0-9]+\.txt", file ):
mtime = os.path.getmtime( everest_dir + file )
if file not in handled:
handled[ file ] = 0
if mtime &gt; handled[ file ]:
ParseFile( file )
handled[ file ] = mtime
time.sleep( 60 )

</pre><hr />


All times are GMT -4. The time now is 03:44 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.