Skip to content

Commit c539143

Browse files
committedJun 9, 2012
Исправлены пути
1 parent ea72691 commit c539143

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎AtomicParsley.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
41
__author__ = 'kovtash'
52

63

7-
import subprocess,os,vpwebFileInfo
4+
import subprocess, os, vpwebFileInfo, sys
85

9-
ATOMIC_PARSLEY=os.path.realpath("./bin/AtomicParsley")
6+
if sys.platform == 'darwin':
7+
ATOMIC_PARSLEY = os.path.realpath("./bin/AtomicParsley")
8+
elif sys.platform == 'linux2':
9+
ATOMIC_PARSLEY = os.path.realpath("/usr/bin/AtomicParsley")
1010

1111
class AtomicParsley(vpwebFileInfo.vpwebFileInfo):
1212
def __init__(self,filePath):
@@ -37,8 +37,8 @@ def setTags(self):
3737
if self.episode is not None:
3838
cmd.extend(["--TVEpisode",self.episode,"--TVEpisodeNum",self.episode])
3939

40-
#print cmd
41-
p=subprocess.Popen(cmd,stdout=subprocess.PIPE,stdin=subprocess.PIPE)
40+
print cmd
41+
p=subprocess.Popen(cmd,stdin=subprocess.PIPE)
4242
resultcode=p.wait()
4343
result = not resultcode
4444
return result

0 commit comments

Comments
 (0)
Please sign in to comment.