Skip to content

Commit 37bcbfc

Browse files
authored
Update install.py- fixing #196 (windows installation)
1 parent 1263e37 commit 37bcbfc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pyradio/install.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ def update_or_uninstall_on_windows(self, mode='update', from_pyradio=False):
950950
else:
951951
b.write(self._python_exec.python + ' install.py --no-logo --do-update ' + params[self._package] + '\n')
952952
b.write('if %ERRORLEVEL% == 1 GOTO downloaderror\n')
953-
b.write('cd "' + os.path.join(self._dir, self.ZIP_DIR[self._package]) + '"\n')
953+
b.write('cd "' + os.path.join(self._dir, 'pyradio-source') + '"\n')
954954

955955
b.write('IF EXIST C:\\Users\\Spiros\\pyradio (\n')
956956
# b.write('COPY C:\\Users\\Spiros\\pyradio\\pyradio\\install.py pyradio\n')
@@ -971,7 +971,7 @@ def update_or_uninstall_on_windows(self, mode='update', from_pyradio=False):
971971
# print('self._dir = "{}"'.format(self._dir))
972972
# print('self._package = "{}"'.format(self._package))
973973
# print('self.ZIP_DIR = "{}"'.format(self.ZIP_DIR))
974-
b.write('cd "' + os.path.join(self._dir, self.ZIP_DIR[self._package]) + '"\n')
974+
b.write('cd "' + os.path.join(self._dir, 'pyradio-source') + '"\n')
975975

976976
b.write('IF EXIST C:\\Users\\Spiros\\pyradio (\n')
977977
# b.write('COPY C:\\Users\\Spiros\\pyradio\\pyradio\\install.py pyradio\n')
@@ -1638,5 +1638,3 @@ def _do_it(self, mode='update'):
16381638
if args.get_cache:
16391639
uni._get_cache = True
16401640
uni.update_pyradio()
1641-
1642-

0 commit comments

Comments
 (0)