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
1771339e
Commit
1771339e
authored
Jun 23, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified script path detection
parent
1aa3af29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
blink
bin/blink
+2
-5
No files found.
bin/blink
View file @
1771339e
...
@@ -5,11 +5,8 @@ import sys
...
@@ -5,11 +5,8 @@ import sys
# We need to mangle Python's import path in case blink is run directly from
# We need to mangle Python's import path in case blink is run directly from
# the bin/ directory.
# the bin/ directory.
try
:
script
=
globals
()
.
get
(
'__file__'
,
sys
.
argv
[
0
])
__file__
script_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
script
))
except
NameError
:
__file__
=
sys
.
argv
[
0
]
script_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
parent_dir
=
os
.
path
.
dirname
(
script_dir
)
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'
)):
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
# Insert the parent path just before the existing script's path. We need
...
...
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