Skip to content

Commit a56c4a2

Browse files
authored
Merge pull request #11 from davidalpert/setup
resolves setup issues in a new windows 7 environment
2 parents a3cb9a1 + fd01475 commit a56c4a2

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ var/
3333
pip-log.txt
3434
pip-delete-this-directory.txt
3535

36+
# idea user-specific files
37+
.idea/workspace.xml
38+
3639
# Unit test / coverage reports
3740
htmlcov/
3841
.tox/

requirements.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
approvaltests==0.1.12
2+
py2exe==0.9.2.2
3+
pysmb==1.1.15
4+
paho-mqtt==1.1
5+
pyreadline==2.1
6+
screeninfo==0.2.1
7+
pypiwin32==219
8+
dnspython==1.14.0
9+
Pillow==2.4.0
10+
pyasn1==0.1.9
11+
cffi==1.7.0
12+
pycparser==2.14
13+
pysha3==0.3

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ def create_windows_exe():
77

88
# Get theme files and store them in a list
99
def get_file_paths(folder_name):
10-
file_paths = [f for f in listdir(folder_name) if isfile(join(folder_name, f))]
11-
return ['{}/{}'.format(folder_name, i) for i in file_paths]
10+
if os.path.isdir(folder_name):
11+
file_paths = [f for f in listdir(folder_name) if isfile(join(folder_name, f))]
12+
return ['{}/{}'.format(folder_name, i) for i in file_paths]
13+
else:
14+
return []
1215

1316
[os.remove(x) for x in get_file_paths('dist')]
1417
theme_file_paths = get_file_paths("Themes")

0 commit comments

Comments
 (0)