Skip to content

Commit

Permalink
Removed UNIX specific file names and replaced with os-generic
Browse files Browse the repository at this point in the history
os.path.join
  • Loading branch information
chapmanb committed Jul 30, 2001
1 parent 0b7f195 commit 4901403
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/test_FSSP.py
Expand Up @@ -5,7 +5,7 @@
import cPickle
import time

test_file = 'FSSP/1cnv.fssp'
test_file = os.path.join('FSSP', '1cnv.fssp')
f = sys.stdout
f.write("\nRead in %s\n" % os.path.basename(test_file))
head_rec, sum_rec, align_rec = FSSP.read_fssp(open(test_file))
Expand All @@ -27,7 +27,8 @@
f.write("\nRecords filtered in %s\n" % k)
f.write("\nLet's Pickle this\n")
time_1 = time.time()
cPickle.dump((head_rec, sum_rec, align_rec),open('FSSP/mydump.pik','w'))
dump_file = os.path.join('FSSP', 'mydump.pik')
cPickle.dump((head_rec, sum_rec, align_rec),open(dump_file, 'w'))
# f.write("Took me %.2f seconds to pickle\n" % (time.time() - time_1))

f.write("\nFilter by name\n")
Expand Down

0 comments on commit 4901403

Please sign in to comment.