Make scripts work when not started from scripts folder

This commit is contained in:
Florian Bruhin 2014-05-13 23:17:22 +02:00
parent b635d8b98e
commit 1f42cf74ad
3 changed files with 7 additions and 0 deletions

View File

@ -22,11 +22,13 @@ Builds a standalone executable.
"""
import os
import sys
import platform
from cx_Freeze import setup, Executable
sys.path.insert(0, os.getcwd())
from scripts.setupdata import setupdata

View File

@ -8,6 +8,8 @@ from tempfile import mkdtemp
from subprocess import call
from shutil import rmtree
sys.path.insert(0, getcwd())
from qutebrowser.app import QuteBrowser
tempdir = mkdtemp()

View File

@ -18,6 +18,9 @@
"""Data used by setup.py and scripts/freeze.py"""
import sys
import os
sys.path.insert(0, os.getcwd())
import qutebrowser