Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stechuhr-client
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pandemic_Response
stechuhr-client
Commits
dbbb6f77
Commit
dbbb6f77
authored
4 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Fix imports for service
parent
a03cd213
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
stechuhr_client/client.py
+2
-2
2 additions, 2 deletions
stechuhr_client/client.py
stechuhr_client/config.py
+2
-2
2 additions, 2 deletions
stechuhr_client/config.py
with
4 additions
and
4 deletions
stechuhr_client/client.py
+
2
−
2
View file @
dbbb6f77
...
...
@@ -19,8 +19,8 @@ import fcntl
import
ctypes
import
struct
from
.
config
import
initialize_config
from
.
keycode
import
KEYCODE
from
config
import
initialize_config
from
keycode
import
KEYCODE
APPLICATION_NAME
=
"
stechuhr-client
"
...
...
This diff is collapsed.
Click to expand it.
stechuhr_client/config.py
+
2
−
2
View file @
dbbb6f77
...
...
@@ -42,12 +42,12 @@ def get_dirs(application_name):
dirs
[
"
config
"
]
=
this_or_else
(
os
.
environ
.
get
(
"
XDG_CONFIG_HOME
"
),
default_config_home
)
# Override this directory from Environment variable
key
=
"
{}_DATA_DIR
"
.
format
(
application_name
.
upper
())
key
=
"
{}_DATA_DIR
"
.
format
(
application_name
.
upper
()
.
replace
(
"
"
,
"
_
"
).
replace
(
"
-
"
,
"
_
"
)
)
if
os
.
getenv
(
key
)
is
not
None
:
dirs
[
"
data
"
]
=
os
.
getenv
(
key
)
# Override this directory from Environment variable
key
=
"
{}_CONFIG_DIR
"
.
format
(
application_name
.
upper
())
key
=
"
{}_CONFIG_DIR
"
.
format
(
application_name
.
upper
()
.
replace
(
"
"
,
"
_
"
).
replace
(
"
-
"
,
"
_
"
)
)
if
os
.
getenv
(
key
)
is
not
None
:
dirs
[
"
config
"
]
=
os
.
getenv
(
key
)
...
...
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