Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agkyra
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
itminedu
agkyra
Commits
0bd81be9
Commit
0bd81be9
authored
9 years ago
by
Giorgos Korfiatis
Browse files
Options
Downloads
Patches
Plain Diff
patch cacerts
parent
61568bcd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
agkyra/syncer/setup.py
+13
-0
13 additions, 0 deletions
agkyra/syncer/setup.py
with
13 additions
and
0 deletions
agkyra/syncer/setup.py
+
13
−
0
View file @
0bd81be9
...
...
@@ -14,6 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
os
import
sys
import
threading
import
logging
import
ctypes
...
...
@@ -47,6 +48,18 @@ INSTANCES_NAME = 'instances'
thread_local_data
=
threading
.
local
()
if
getattr
(
sys
,
'
frozen
'
,
False
):
# we are running in a |PyInstaller| bundle
BASEDIR
=
sys
.
_MEIPASS
ISFROZEN
=
True
else
:
# we are running in a normal Python environment
CURDIR
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
BASEDIR
=
os
.
path
.
dirname
(
CURDIR
)
ISFROZEN
=
False
RESOURCES
=
os
.
path
.
join
(
BASEDIR
,
'
resources
'
)
https
.
patch_with_certs
(
os
.
path
.
join
(
RESOURCES
,
'
cacert.pem
'
))
def
get_instance
(
elems
):
data
=
""
.
join
(
elems
)
...
...
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