Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
a261d3da
Commit
a261d3da
authored
Sep 18, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed settings script to be able to run in place
parent
edfa2bf5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
blink-settings
bin/blink-settings
+16
-0
No files found.
bin/blink-settings
View file @
a261d3da
...
@@ -18,6 +18,22 @@ from sipsimple.configuration.backend.file import FileBackend
...
@@ -18,6 +18,22 @@ from sipsimple.configuration.backend.file import FileBackend
from
sipsimple.configuration.datatypes
import
List
,
STUNServerAddress
from
sipsimple.configuration.datatypes
import
List
,
STUNServerAddress
from
sipsimple.configuration.settings
import
SIPSimpleSettings
from
sipsimple.configuration.settings
import
SIPSimpleSettings
# We need to mangle Python's import path in case blink-settings is run
# directly from the bin/ directory.
script
=
globals
()
.
get
(
'__file__'
,
sys
.
argv
[
0
])
script_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
script
))
parent_dir
=
os
.
path
.
dirname
(
script_dir
)
if
os
.
path
.
basename
(
script_dir
)
==
'bin'
and
os
.
path
.
exists
(
os
.
path
.
join
(
parent_dir
,
'blink'
,
'__init__.py'
)):
# Insert the parent path just before the existing script's path. We need
# to do this in order to work with debuggers which insert their own paths
# at the beginning. The script's path is the last Python itself inserted
# so we should insert just before that.
try
:
position
=
sys
.
path
.
index
(
script_dir
)
except
ValueError
:
position
=
0
sys
.
path
.
insert
(
position
,
parent_dir
)
from
blink.configuration.account
import
AccountExtension
,
BonjourAccountExtension
from
blink.configuration.account
import
AccountExtension
,
BonjourAccountExtension
from
blink.configuration.settings
import
SIPSimpleSettingsExtension
from
blink.configuration.settings
import
SIPSimpleSettingsExtension
from
blink.resources
import
ApplicationData
from
blink.resources
import
ApplicationData
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment