churchyard pushed to cura-lulzbot (f21). "Merge branch 'master' into f21"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Apr 20 07:35:42 UTC 2015
>From c5fe41898db9ca582c9370705201ca7bc892822a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro at hroncok.cz>
Date: Mon, 20 Apr 2015 09:29:24 +0200
Subject: Handle files from the command line (#1213220)
diff --git a/cura-lulzbot b/cura-lulzbot
index e19defd..e34c814 100755
--- a/cura-lulzbot
+++ b/cura-lulzbot
@@ -1,5 +1,15 @@
#!/usr/bin/python
import os
-os.chdir("/usr/lib/python2.7/site-packages/")
+import sys
import CuraLulzbot.cura as cura
+
+# Make all paths absolute, we are gonna change the pwd
+for i in range(len(sys.argv)):
+ if os.path.exists(sys.argv[i]):
+ sys.argv[i] = os.path.abspath(sys.argv[i])
+
+# change the pwd
+os.chdir("/usr/lib/python2.7/site-packages/")
+
+# start cura
cura.main()
diff --git a/cura-lulzbot.spec b/cura-lulzbot.spec
index 6a82e53..2f987b1 100644
--- a/cura-lulzbot.spec
+++ b/cura-lulzbot.spec
@@ -1,6 +1,6 @@
Name: cura-lulzbot
Version: 14.12
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Cura LulzBot Edition, 3D printer control software
# Code is AGPLv3
@@ -115,6 +115,9 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
%{_bindir}/%{name}
%changelog
+* Mon Apr 20 2015 Miro Hrončok <mhroncok at redhat.com> - 14.12-4
+- Handle files from the command line (#1213220)
+
* Wed Apr 01 2015 Miro Hrončok <mhroncok at redhat.com> - 14.12-3
- Update the no firmware patch according to communication with Cura upstream
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/cura-lulzbot.git/commit/?h=f21&id=6139ff5db853e28c18d0991d1587010cf5dcd2fe
More information about the scm-commits
mailing list