Skip to content

Commit

Permalink
fixed mistake in path finding on executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Laberbear committed Feb 23, 2017
1 parent 4f547fa commit 1ccc8b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/misc/standalone_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def get_path_to_app():
ValueError("__file__ wasn't set.'")

# Get current directory
current_dir = os.path.dirname(os.path.abspath(__file__))
if getattr(sys, 'frozen', False):
current_dir = os.path.dirname(os.path.abspath(sys.executable))
elif __file__:
current_dir = os.path.dirname(os.path.abspath(__file__))
# Search for parent until arrived at test
while os.path.basename(current_dir) != APP_FOLDER_NAME:
if current_dir == os.path.dirname(current_dir): # Top Level of filesystem reached
Expand Down
2 changes: 1 addition & 1 deletion appveyor/create_deploy.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
echo "Starting deploy script"
echo $env:PYTHON_VERSION
echo $env:PYTHON_ARCH
if ($env:PYTHON_VERSION -eq "3.4.x" -and $env:PYTHON_ARCH -eq "64") {
if ($env:PYTHON_VERSION -eq "3.4.x" -and $env:PYTHON_ARCH -eq "32") {
pip install pyinstaller
npm install -g bower
git clone https://github.com/OpServ-Monitoring/opserv-frontend.git app/server/static_hosting/public
Expand Down

0 comments on commit 1ccc8b6

Please sign in to comment.