From 4d5b4037eee18abc4887f14d50b89abfbbb4914d Mon Sep 17 00:00:00 2001 From: "sensirion-zh\\rnestler" Date: Thu, 21 May 2015 12:30:17 +0200 Subject: [PATCH] fix basename on windows By using the functions from the os package we keep the code portable. Fixes issue #9 --- gitsvnhelpers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsvnhelpers/utils.py b/gitsvnhelpers/utils.py index f2e7ca3..33a3ee6 100644 --- a/gitsvnhelpers/utils.py +++ b/gitsvnhelpers/utils.py @@ -11,7 +11,7 @@ def basename(): - return popen('basename $PWD', False, False)[1][0] + return os.path.basename(os.getcwd()) def is_git():