Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel393
Commits
9f5e9924
Commit
9f5e9924
authored
Mar 19, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to creating a working copy of projects.json
parent
5f6a0a0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
projects-default.json
projects-default.json
+0
-0
setup.py
setup.py
+10
-0
No files found.
projects.json
→
projects
-default
.json
View file @
9f5e9924
File moved
setup.py
View file @
9f5e9924
...
@@ -13,10 +13,20 @@ __status__ = "Development"
...
@@ -13,10 +13,20 @@ __status__ = "Development"
import
subprocess
import
subprocess
import
os
import
os
import
sys
import
sys
import
shutil
import
json
import
json
from
collections
import
OrderedDict
from
collections
import
OrderedDict
projects_file
=
"projects.json"
projects_default_file
=
"projects-default.json"
if
not
os
.
path
.
isfile
(
projects_file
):
if
os
.
path
.
isfile
(
projects_default_file
):
shutil
.
copy
(
projects_default_file
,
projects_file
)
sys
.
exit
()
with
open
(
'projects.json'
)
as
data_file
:
with
open
(
'projects.json'
)
as
data_file
:
Projects
=
json
.
load
(
data_file
,
object_pairs_hook
=
OrderedDict
)
Projects
=
json
.
load
(
data_file
,
object_pairs_hook
=
OrderedDict
)
...
...
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