Get rid of the getcwd hack in scripts.
This commit is contained in:
parent
bd11913a4a
commit
8095de6c59
@ -21,11 +21,12 @@
|
||||
"""Generate the html documentation based on the asciidoc files."""
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
import subprocess
|
||||
import glob
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
|
||||
|
||||
from scripts import utils
|
||||
|
||||
|
@ -31,7 +31,7 @@ import distutils
|
||||
|
||||
import cx_Freeze as cx
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
|
||||
from scripts import setupcommon
|
||||
|
||||
|
||||
|
@ -47,7 +47,7 @@ import pep257
|
||||
import pkg_resources as pkg
|
||||
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
|
||||
|
||||
from scripts import utils
|
||||
|
||||
|
@ -28,7 +28,7 @@ import tempfile
|
||||
import subprocess
|
||||
import shutil
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
|
||||
|
||||
import qutebrowser.qutebrowser # pylint: disable=unused-import
|
||||
|
||||
|
@ -24,8 +24,9 @@ import os
|
||||
import signal
|
||||
import sys
|
||||
import subprocess
|
||||
import os.path
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
|
||||
|
||||
from scripts import utils
|
||||
|
||||
|
@ -26,7 +26,7 @@ import ast
|
||||
import os
|
||||
import os.path
|
||||
import subprocess
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
|
||||
|
||||
|
||||
BASEDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
||||
|
@ -31,7 +31,7 @@ import collections
|
||||
import tempfile
|
||||
import argparse
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
|
||||
|
||||
# We import qutebrowser.app so all @cmdutils-register decorators are run.
|
||||
import qutebrowser.app
|
||||
|
Loading…
Reference in New Issue
Block a user