Beispiel #1
0
#!D:\kodb\Python\virenv\Scripts\python.exe
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

import sys, os
extra = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, extra)
try:
    import _preamble
except ImportError:
    sys.exc_clear()
sys.path.remove(extra)

from twisted.conch.scripts.conch import run
run()
Beispiel #2
0
#!c:\python36-32\scripts\myenv\scripts\python.exe
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

import sys, os
extra = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, extra)
try:
    import _preamble
except ImportError:
    sys.exc_clear()
sys.path.remove(extra)

from twisted.conch.scripts.conch import run
run()
Beispiel #3
0
# -*- coding: utf-8 -*-
import re
import sys

from twisted.conch.scripts.conch import run

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(run())