diff --git a/jlmkr.py b/jlmkr.py index d432e36..10ab09c 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -899,7 +899,7 @@ def main(): fail("Run this script as root...") # Set appropriate permissions (if not already set) for this file, since it's executed as root - stat_chmod(__file__, 0o700) + stat_chmod(SCRIPT_NAME, 0o700) # Work relative to this script os.chdir(SCRIPT_DIR_PATH)