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
241d2106
Commit
241d2106
authored
9 years ago
by
Giorgos Korfiatis
Browse files
Options
Downloads
Patches
Plain Diff
Separate scripts of cli and gui
parent
085be7b0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
agkyra-cli
+35
-0
35 additions, 0 deletions
agkyra-cli
agkyra-gui
+0
-5
0 additions, 5 deletions
agkyra-gui
with
35 additions
and
5 deletions
agkyra-cli
0 → 100755
+
35
−
0
View file @
241d2106
#!/usr/bin/env python
# Copyright (C) 2015 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
os
from
agkyra
import
config
AGKYRA_DIR
=
config
.
AGKYRA_DIR
import
logging
LOGFILE
=
os
.
path
.
join
(
AGKYRA_DIR
,
'
agkyra.log
'
)
LOGGER
=
logging
.
getLogger
(
'
agkyra
'
)
HANDLER
=
logging
.
FileHandler
(
LOGFILE
)
FORMATTER
=
logging
.
Formatter
(
"
%(levelname)s:%(asctime)s:%(message)s
"
)
HANDLER
.
setFormatter
(
FORMATTER
)
LOGGER
.
addHandler
(
HANDLER
)
LOGGER
.
setLevel
(
logging
.
INFO
)
# run cli
from
agkyra.cli
import
AgkyraCLI
from
sys
import
argv
AgkyraCLI
().
onecmd
(
'
'
.
join
(
argv
[
1
:]
or
[
'
help
'
,
]))
This diff is collapsed.
Click to expand it.
launch
→
agkyra-gui
+
0
−
5
View file @
241d2106
...
...
@@ -32,8 +32,3 @@ LOGGER.setLevel(logging.INFO)
# # run GUI
from
agkyra
import
gui
gui
.
run
()
# run cli
# from agkyra.cli import AgkyraCLI
# from sys import argv
# AgkyraCLI().onecmd(' '.join(argv[1:] or ['help', ]))
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