From 2539ce5e17c588632b95195334e1c8c8800ea746 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 30 Apr 2013 13:48:06 +0100 Subject: [PATCH] Fix static builds --- source/carla.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/carla.py b/source/carla.py index 73339dfb2..0068370b1 100755 --- a/source/carla.py +++ b/source/carla.py @@ -86,7 +86,7 @@ SAMPLE_RATES = (22050, 32000, 44100, 48000, 88200, 96000, 176400, 192000) # ------------------------------------------------------------------------------------------------------------ # Global Variables -appName = os.path.basename(__file__) if os.path.dirname(__file__) in PATH else sys.argv[0] +appName = os.path.basename(__file__) if "__file__" in dir() and os.path.dirname(__file__) in PATH else sys.argv[0] libPrefix = None projectFilename = None