1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00
svtplay-dl/lib/svtplay_dl/__main__.py

16 lines
343 B
Python
Raw Normal View History

2013-03-23 15:43:05 +01:00
#!/usr/bin/env python
import sys
if __package__ is None and not hasattr(sys, "frozen"):
# direct call of __main__.py
import os.path
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
try:
import svtplay_dl
2013-03-23 15:43:05 +01:00
if __name__ == '__main__':
svtplay_dl.main()
except KeyboardInterrupt:
pass