forked from JRCSTU/wltp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
excel: Rework code to import side-python file.
* Prepare for windows installer. * cmdline: Add --excelrun. * Rename wltp_runner --> WltpExcelRunner * Replace (some) Flashbang with just `python`. * Add WinPython_requirments.txt.
- Loading branch information
Showing
13 changed files
with
164 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
six | ||
jsonschema>=2.4, | ||
jsonpointer | ||
#prefixtree | ||
numpy | ||
pandas #openpyxl, xlrd, | ||
matplotlib | ||
Pillow | ||
xlwings>=0.2.3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#! python | ||
#-*- coding: utf-8 -*- | ||
# | ||
# Copyright 2013-2014 European Commission (JRC); | ||
# Licensed under the EUPL (the 'Licence'); | ||
# You may not use this work except in compliance with the Licence. | ||
# You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl | ||
#! python | ||
# -*- coding: utf-8 -*- | ||
|
||
from __future__ import division, unicode_literals | ||
|
||
import os | ||
from os.path import expanduser | ||
import sys | ||
|
||
from cx_Freeze.dist import install | ||
|
||
PROG_GROUP='PythonWltp' | ||
|
||
def install(): | ||
start_menu = get_special_folder_path("CSIDL_STARTMENU") #@UndefinedVariable | ||
prog_group = os.path.join(PROG_GROUP, start_menu) | ||
menu_shortcuts = [ | ||
dict(path=os.path.join(sys.prefix, 'pythonw.exe'), | ||
description='Start GUI to run a single experiment.', | ||
filename=os.path(prog_group, 'TkWltp.lnk'), | ||
arguments="wltpcmd.py --gui", | ||
#workdir=expanduser('~'), | ||
#iconpath=os.path.join(os.path.dirname(my_package.__file__), 'favicon.ico'), | ||
#iconindex=0 | ||
), | ||
dict(path=os.path.join(sys.prefix, 'pythonw.exe'), | ||
description='Copy `xlwings` excel & python template files into USERDIR and open Excel-file, to run a batch of experiments.', | ||
filename=os.path(prog_group, 'Open Wltp Excel.lnk'), | ||
arguments="wltpcmd.py --excelrun", | ||
workdir=expanduser('~'), | ||
), | ||
] | ||
|
||
os.mkdir(prog_group) | ||
directory_created(prog_group) #@UndefinedVariable | ||
|
||
for shortcut in menu_shortcuts: | ||
create_shortcut(**shortcut) #@UndefinedVariable | ||
file_created(shortcut['filename']) #@UndefinedVariable | ||
|
||
|
||
os.mkdir('D:\\tt') | ||
if __name__ == '__main__': | ||
if sys.argv[1] == '-install': | ||
install() | ||
elif sys.argv[1] == '-remove': | ||
print("Wltp: Nothing to uninstall.", file=sys.stderr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#! python | ||
#-*- coding: utf-8 -*- | ||
# | ||
# Copyright 2013-2014 European Commission (JRC); | ||
|