From 3928180cc9e645382492c6688a0be5738cd03bf3 Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sat, 9 Aug 2008 12:49:02 +0000 Subject: [PATCH] bash fix --- deluge/scripts/create_plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/scripts/create_plugin.py b/deluge/scripts/create_plugin.py index 84ab092dc..e24ffd2ed 100644 --- a/deluge/scripts/create_plugin.py +++ b/deluge/scripts/create_plugin.py @@ -39,7 +39,7 @@ def create_plugin(): name = options.name.replace(" ", "_") safe_name = name.lower() - plugin_base = os.path.join(options.path, name) + plugin_base = os.path.realpath(os.path.join(options.path, name)) src = os.path.join(plugin_base, safe_name) if os.path.exists(plugin_base): @@ -316,8 +316,7 @@ GPL = """# # this exception statement from your version. If you delete this exception """ -CREATE_DEV_LINK = """ -#!usr/bin/bash +CREATE_DEV_LINK = """#!/bin/bash cd %(plugin_base)s mkdir temp export PYTHONPATH=./temp