[kupfer] Fix relative imports to be absolute
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] Fix relative imports to be absolute
- Date: Thu, 17 Dec 2009 10:31:03 +0000 (UTC)
commit 36b2222bba6bc7910bd1888df38198ea62f3624b
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Dec 17 02:48:05 2009 +0100
Fix relative imports to be absolute
kupfer/utils.py | 4 ++--
kupfer/version.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/utils.py b/kupfer/utils.py
index 10bf784..d7ee445 100644
--- a/kupfer/utils.py
+++ b/kupfer/utils.py
@@ -84,13 +84,13 @@ def app_info_for_commandline(cli, name=None, in_terminal=False):
return item
def launch_commandline(cli, name=None, in_terminal=False):
- import launch
+ from kupfer import launch
app_info = app_info_for_commandline(cli, name, in_terminal)
pretty.print_debug(__name__, "Launch commandline (in_terminal=", in_terminal, "):", cli, sep="")
return launch.launch_application(app_info, activate=False, track=False)
def launch_app(app_info, files=(), uris=(), paths=()):
- import launch
+ from kupfer import launch
# With files we should use activate=False
return launch.launch_application(app_info, files, uris, paths,
diff --git a/kupfer/version.py b/kupfer/version.py
index 2566571..98c950c 100644
--- a/kupfer/version.py
+++ b/kupfer/version.py
@@ -4,7 +4,7 @@ VERSION = "version undefined"
PACKAGE_NAME = "kupfer"
try:
- import version_subst
+ from kupfer import version_subst
except ImportError:
pass
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]