From 2b726f5194ddd9e24be193ccd5f25cd555caca1f Mon Sep 17 00:00:00 2001 From: kangalioo Date: Sun, 20 Oct 2019 11:40:59 +0200 Subject: [PATCH] Ignore replays only on my PC --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b09393e..2340daf 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * -import os, json +import os, json, socket from plotter import Plotter import util @@ -29,7 +29,8 @@ XML_CANCEL_MSG = "You need to provide an Etterna.xml file for this program to work" SETTINGS_PATH = "etterna-graph-settings.json" -IGNORE_REPLAYS = True +IGNORE_REPLAYS = True # Development purposes +if socket.gethostname() != "kangalioo-pc": IGNORE_REPLAYS = False # QScrollArea wrapper with scroll wheel scrolling disabled. # I did this to prevent simultaneous scrolling and panning