diff --git a/include/ClientGUI.py b/include/ClientGUI.py index fe4f8a8..51d26d7 100755 --- a/include/ClientGUI.py +++ b/include/ClientGUI.py @@ -175,7 +175,7 @@ class FrameGUI( ClientGUITopLevelWindows.FrameThatResizes ): aboutinfo.SetVersion( str( HC.SOFTWARE_VERSION ) + ', using network version ' + str( HC.NETWORK_VERSION ) ) aboutinfo.SetDescription( CC.CLIENT_DESCRIPTION ) - with open( os.path.join( HC.BASE_DIR, 'license.txt' ), 'rb' ) as f: license = f.read() + with open( '/usr/share/licenses/hydrus/license.txt', 'rb' ) as f: license = f.read() aboutinfo.SetLicense( license ) @@ -334,7 +334,7 @@ class FrameGUI( ClientGUITopLevelWindows.FrameThatResizes ): python_executable = python_executable.replace( 'pythonw', 'python' ) - subprocess.Popen( [ python_executable, os.path.join( HC.BASE_DIR, 'server.py' ) ] ) + subprocess.Popen( [ python_executable, '/opt/hydrus/server.py' ] ) time_waited = 0 diff --git a/include/HydrusConstants.py b/include/HydrusConstants.py index fb7e55f..609eb39 100755 --- a/include/HydrusConstants.py +++ b/include/HydrusConstants.py @@ -3,27 +3,12 @@ import sys # dirs -BASE_DIR = sys.path[0] - -if BASE_DIR == '': - - BASE_DIR = os.getcwdu() - -else: - - try: - - BASE_DIR = BASE_DIR.decode( 'utf-8' ) - - except: - - pass - - -BIN_DIR = os.path.join( BASE_DIR, 'bin' ) -HELP_DIR = os.path.join( BASE_DIR, 'help' ) -INCLUDE_DIR = os.path.join( BASE_DIR, 'include' ) -STATIC_DIR = os.path.join( BASE_DIR, 'static' ) +BASE_DIR = os.path.expanduser("~/.local/share/hydrus") + +BIN_DIR = "/opt/hydrus/bin" +HELP_DIR = "/opt/hydrus/help" +INCLUDE_DIR = "/opt/hydrus/include" +STATIC_DIR = "/opt/hydrus/static" #