-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.py
60 lines (36 loc) · 1.02 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# import shutil
# def readEffectList():
# lines=[]
# sanitized=[]
# with open('./effect/test.txt') as f:
# lines = f.readlines()
# for i in lines:
# sanitized.append(i.replace("\n", ""))
# return sanitized
# #TEST1
# filterList=readEffectList()
# print(filterList)
# folderPath = {
# "GIF": './gif',
# "TEMP": './temp',
# "RENDER": './render'
# }
# make_archive('temp_',folderPath['TEMP'])
# import unittest
# class TestStringMethods(unittest.TestCase):
# def test_readAsList(self):
# exampleList=readFileAsList("ownSelection.txt",self)
# self.assertEqual(exampleList(exampleList[0],'fx_whirls 20,3.88,0.2,1.672,11,0,50,50'))
# if __name__ == '__main__':
# unittest.main()
import re
def readFileAsList(fileName):
fileName = r"./effect/"+fileName
text_file = open(fileName, "r")
lines = text_file.readlines()
# print (lines)
text_file.close()
return lines
testL =[]
testL=readFileAsList("ownSelection.txt")
print(testL[1])