Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
10cd25b0
Commit
10cd25b0
authored
13 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix dll detection under windows. Fixes #5968
parent
4ba0c959
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gajim.py
+27
-29
27 additions, 29 deletions
src/gajim.py
with
27 additions
and
29 deletions
src/gajim.py
+
27
−
29
View file @
10cd25b0
...
...
@@ -35,6 +35,33 @@
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
##
import
os
import
sys
import
warnings
if
os
.
name
==
'
nt
'
:
log_path
=
os
.
path
.
join
(
os
.
environ
[
'
APPDATA
'
],
'
Gajim
'
)
if
not
os
.
path
.
exists
(
log_path
):
os
.
mkdir
(
log_path
,
0700
)
log_file
=
os
.
path
.
join
(
log_path
,
'
gajim.log
'
)
fout
=
open
(
log_file
,
'
a
'
)
sys
.
stdout
=
fout
sys
.
stderr
=
fout
warnings
.
filterwarnings
(
action
=
'
ignore
'
)
if
os
.
path
.
isdir
(
'
gtk
'
):
# Used to create windows installer with GTK included
paths
=
os
.
environ
[
'
PATH
'
]
list_
=
paths
.
split
(
'
;
'
)
new_list
=
[]
for
p
in
list_
:
if
p
.
find
(
'
gtk
'
)
<
0
and
p
.
find
(
'
GTK
'
)
<
0
:
new_list
.
append
(
p
)
new_list
.
insert
(
0
,
os
.
path
.
join
(
os
.
getcwd
(),
'
gtk
'
,
'
lib
'
))
new_list
.
insert
(
0
,
os
.
path
.
join
(
os
.
getcwd
(),
'
gtk
'
,
'
bin
'
))
os
.
environ
[
'
PATH
'
]
=
'
;
'
.
join
(
new_list
)
from
common
import
demandimport
demandimport
.
enable
()
demandimport
.
ignore
+=
[
'
gobject._gobject
'
,
'
libasyncns
'
,
'
i18n
'
,
...
...
@@ -42,9 +69,6 @@ demandimport.ignore += ['gobject._gobject', 'libasyncns', 'i18n',
'
command_system.implementation.standard
'
,
'
OpenSSL.SSL
'
,
'
OpenSSL.crypto
'
,
'
common.sleepy
'
,
'
DLFCN
'
,
'
dl
'
,
'
xml.sax
'
,
'
xml.sax.handler
'
,
'
ic
'
]
import
os
import
sys
if
os
.
name
==
'
nt
'
:
import
locale
import
gettext
...
...
@@ -70,32 +94,6 @@ if os.name == 'nt':
libintl
.
bindtextdomain
(
APP
,
DIR
)
libintl
.
bind_textdomain_codeset
(
APP
,
'
UTF-8
'
)
import
warnings
if
os
.
name
==
'
nt
'
:
log_path
=
os
.
path
.
join
(
os
.
environ
[
'
APPDATA
'
],
'
Gajim
'
)
if
not
os
.
path
.
exists
(
log_path
):
os
.
mkdir
(
log_path
,
0700
)
log_file
=
os
.
path
.
join
(
log_path
,
'
gajim.log
'
)
fout
=
open
(
log_file
,
'
a
'
)
sys
.
stdout
=
fout
sys
.
stderr
=
fout
warnings
.
filterwarnings
(
action
=
'
ignore
'
)
if
os
.
path
.
isdir
(
'
gtk
'
):
# Used to create windows installer with GTK included
paths
=
os
.
environ
[
'
PATH
'
]
list_
=
paths
.
split
(
'
;
'
)
new_list
=
[]
for
p
in
list_
:
if
p
.
find
(
'
gtk
'
)
<
0
and
p
.
find
(
'
GTK
'
)
<
0
:
new_list
.
append
(
p
)
new_list
.
insert
(
0
,
'
gtk/lib
'
)
new_list
.
insert
(
0
,
'
gtk/bin
'
)
os
.
environ
[
'
PATH
'
]
=
'
;
'
.
join
(
new_list
)
os
.
environ
[
'
GTK_BASEPATH
'
]
=
'
gtk
'
if
os
.
name
==
'
nt
'
:
# needed for docutils
sys
.
path
.
append
(
'
.
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment