Skip to content

Commit

Permalink
funcionalidad para identificar SO en el código, perimite ejecución en…
Browse files Browse the repository at this point in the history
… Windows y Linux.
  • Loading branch information
Jcmantillam committed Dec 7, 2017
1 parent edc23ce commit 03f0e0a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions blindtex/converter/converter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import os
from sys import argv
from parser import convert

print(convert(argv[1]))
def run(arg):
try:
print(convert(arg))
except:
print("Error, please check the requirements and configurations")

if os.name == "nt":
print os.name
from blindtex.converter.parser import convert
run(argv[1])
if os.name == "posix":
print os.name
from parser import convert
run(argv[1])




0 comments on commit 03f0e0a

Please sign in to comment.