Make scripts work when not started from scripts folder
This commit is contained in:
parent
b635d8b98e
commit
1f42cf74ad
@ -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
|
||||
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user