mirror of
https://github.com/bvanroll/startrek-ml.git
synced 2025-08-29 20:12:40 +00:00
why isn't it commiting
This commit is contained in:
16
FriendsConverter.py
Normal file
16
FriendsConverter.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import sys
|
||||
import json
|
||||
|
||||
|
||||
file = sys.argv[1]
|
||||
with open(file, "r") as infile:
|
||||
script=infile.read().replace('\n', '\\n')
|
||||
while (True):
|
||||
if(script.find("[Scene:") == -1):
|
||||
break
|
||||
TestFromSceneOn = script[script.find("[Scene:"):]
|
||||
tempEndOfScript= script[:script.find("[Scene:")]
|
||||
print(tempEndOfScript)
|
||||
script = TestFromSceneOn[script.find("[Scene:")+7:]
|
||||
print("END OF TEST")
|
||||
print(TestFromSceneOn)
|
Reference in New Issue
Block a user